pub struct InventoryConfigBuilder { /* private fields */ }Expand description
Builder for InventoryConfig.
Implementations§
Source§impl InventoryConfigBuilder
impl InventoryConfigBuilder
Sourcepub fn batch_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn batch_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The id of a live batch (see batch_create) -
required, guards the snapshot against WAL garbage collection while
it’s being read
Sourcepub fn include_system(&mut self, value: bool) -> &mut Self
pub fn include_system(&mut self, value: bool) -> &mut Self
Whether to include system collections in the result
Sourcepub fn collection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn collection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Restrict the result to a single collection
Sourcepub fn build(&self) -> Result<InventoryConfig, InventoryConfigBuilderError>
pub fn build(&self) -> Result<InventoryConfig, InventoryConfigBuilderError>
Trait Implementations§
Source§impl Clone for InventoryConfigBuilder
impl Clone for InventoryConfigBuilder
Auto Trait Implementations§
impl Freeze for InventoryConfigBuilder
impl RefUnwindSafe for InventoryConfigBuilder
impl Send for InventoryConfigBuilder
impl Sync for InventoryConfigBuilder
impl Unpin for InventoryConfigBuilder
impl UnsafeUnpin for InventoryConfigBuilder
impl UnwindSafe for InventoryConfigBuilder
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