pub struct BuilderConfig<S: Store> {
pub store: Arc<S>,
pub chunk_size: usize,
pub max_links: usize,
pub encrypted: bool,
}Expand description
Builder configuration
Fields§
§store: Arc<S>§chunk_size: usize§max_links: usize§encrypted: boolWhether to encrypt content (default: true when encryption feature enabled)
Implementations§
Source§impl<S: Store> BuilderConfig<S>
impl<S: Store> BuilderConfig<S>
pub fn new(store: Arc<S>) -> Self
pub fn with_chunk_size(self, chunk_size: usize) -> Self
pub fn with_max_links(self, max_links: usize) -> Self
Trait Implementations§
Source§impl<S: Clone + Store> Clone for BuilderConfig<S>
impl<S: Clone + Store> Clone for BuilderConfig<S>
Source§fn clone(&self) -> BuilderConfig<S>
fn clone(&self) -> BuilderConfig<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for BuilderConfig<S>
impl<S> RefUnwindSafe for BuilderConfig<S>where
S: RefUnwindSafe,
impl<S> Send for BuilderConfig<S>
impl<S> Sync for BuilderConfig<S>
impl<S> Unpin for BuilderConfig<S>
impl<S> UnsafeUnpin for BuilderConfig<S>
impl<S> UnwindSafe for BuilderConfig<S>where
S: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more