#[non_exhaustive]pub struct CreateCollectionSettings {
pub max_expiry: Option<MaxExpiryValue>,
pub history: Option<bool>,
}Expand description
Settings for creating a new collection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_expiry: Option<MaxExpiryValue>Maximum document expiry for the collection.
history: Option<bool>Whether to enable history retention.
Implementations§
Source§impl CreateCollectionSettings
impl CreateCollectionSettings
Sourcepub fn max_expiry(self, max_expiry: MaxExpiryValue) -> Self
pub fn max_expiry(self, max_expiry: MaxExpiryValue) -> Self
Sets the maximum document expiry.
Trait Implementations§
Source§impl Clone for CreateCollectionSettings
impl Clone for CreateCollectionSettings
Source§fn clone(&self) -> CreateCollectionSettings
fn clone(&self) -> CreateCollectionSettings
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 moreSource§impl Debug for CreateCollectionSettings
impl Debug for CreateCollectionSettings
Source§impl Default for CreateCollectionSettings
impl Default for CreateCollectionSettings
Source§fn default() -> CreateCollectionSettings
fn default() -> CreateCollectionSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateCollectionSettings
impl RefUnwindSafe for CreateCollectionSettings
impl Send for CreateCollectionSettings
impl Sync for CreateCollectionSettings
impl Unpin for CreateCollectionSettings
impl UnsafeUnpin for CreateCollectionSettings
impl UnwindSafe for CreateCollectionSettings
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