From 7f1602e28fcecc02c47a43867c43dc8b420ca120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sun, 30 Jun 2019 23:21:37 -0700 Subject: [PATCH] feat(put): privatize Put and PutOpts fields --- src/put.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/put.rs b/src/put.rs index 9b69795..f5268e0 100644 --- a/src/put.rs +++ b/src/put.rs @@ -27,13 +27,13 @@ where /// Options and flags for opening a new cache file to write data into. #[derive(Clone, Default)] pub struct PutOpts { - pub algorithm: Option, - pub sri: Option, - pub size: Option, - pub time: Option, - pub metadata: Option, - pub uid: Option, - pub gid: Option, + pub(crate) algorithm: Option, + pub(crate) sri: Option, + pub(crate) size: Option, + pub(crate) time: Option, + pub(crate) metadata: Option, + pub(crate) uid: Option, + pub(crate) gid: Option, } impl PutOpts { @@ -106,11 +106,11 @@ impl PutOpts { /// A reference to an open file writing to the cache. pub struct Put { - pub cache: PathBuf, - pub key: String, - pub written: usize, + cache: PathBuf, + key: String, + written: usize, pub(crate) writer: write::Writer, - pub opts: PutOpts, + opts: PutOpts, } impl Write for Put {