#[non_exhaustive]pub struct CreateCollectionOptions<'a> {
pub on_behalf_of_info: Option<&'a OnBehalfOfInfo>,
pub bucket_name: &'a str,
pub scope_name: &'a str,
pub collection_name: &'a str,
pub max_ttl: Option<i32>,
pub history_enabled: Option<bool>,
pub retry_strategy: Arc<dyn RetryStrategy>,
}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.on_behalf_of_info: Option<&'a OnBehalfOfInfo>§bucket_name: &'a str§scope_name: &'a str§collection_name: &'a str§max_ttl: Option<i32>§history_enabled: Option<bool>§retry_strategy: Arc<dyn RetryStrategy>Implementations§
Source§impl<'a> CreateCollectionOptions<'a>
impl<'a> CreateCollectionOptions<'a>
pub fn new( bucket_name: &'a str, scope_name: &'a str, collection_name: &'a str, ) -> Self
pub fn max_ttl(self, max_ttl: i32) -> Self
pub fn history_enabled(self, history_enabled: bool) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
pub fn on_behalf_of_info(self, on_behalf_of_info: &'a OnBehalfOfInfo) -> Self
Trait Implementations§
Source§impl<'a> Clone for CreateCollectionOptions<'a>
impl<'a> Clone for CreateCollectionOptions<'a>
Source§fn clone(&self) -> CreateCollectionOptions<'a>
fn clone(&self) -> CreateCollectionOptions<'a>
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<'a> Debug for CreateCollectionOptions<'a>
impl<'a> Debug for CreateCollectionOptions<'a>
Source§impl<'a> From<&CreateCollectionOptions<'a>> for CreateCollectionOptions<'a>
impl<'a> From<&CreateCollectionOptions<'a>> for CreateCollectionOptions<'a>
Source§fn from(opts: &CreateCollectionOptions<'a>) -> Self
fn from(opts: &CreateCollectionOptions<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CreateCollectionOptions<'a>
impl<'a> !RefUnwindSafe for CreateCollectionOptions<'a>
impl<'a> Send for CreateCollectionOptions<'a>
impl<'a> Sync for CreateCollectionOptions<'a>
impl<'a> Unpin for CreateCollectionOptions<'a>
impl<'a> UnsafeUnpin for CreateCollectionOptions<'a>
impl<'a> !UnwindSafe for CreateCollectionOptions<'a>
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