#[non_exhaustive]pub struct MutateInOptions<'a> {
pub key: &'a [u8],
pub scope_name: &'a str,
pub collection_name: &'a str,
pub ops: &'a [MutateInOp<'a>],
pub flags: SubdocDocFlag,
pub expiry: Option<u32>,
pub preserve_expiry: Option<bool>,
pub cas: Option<u64>,
pub durability_level: Option<DurabilityLevel>,
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.key: &'a [u8]§scope_name: &'a str§collection_name: &'a str§ops: &'a [MutateInOp<'a>]§flags: SubdocDocFlag§expiry: Option<u32>§preserve_expiry: Option<bool>§cas: Option<u64>§durability_level: Option<DurabilityLevel>§retry_strategy: Arc<dyn RetryStrategy>Implementations§
Source§impl<'a> MutateInOptions<'a>
impl<'a> MutateInOptions<'a>
pub fn new( key: &'a [u8], scope_name: &'a str, collection_name: &'a str, ops: &'a [MutateInOp<'a>], ) -> Self
pub fn flags(self, flags: SubdocDocFlag) -> Self
pub fn expiry(self, expiry: impl Into<Option<u32>>) -> Self
pub fn preserve_expiry(self, preserve_expiry: impl Into<Option<bool>>) -> Self
pub fn cas(self, cas: impl Into<Option<u64>>) -> Self
pub fn durability_level( self, durability_level: impl Into<Option<DurabilityLevel>>, ) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
Trait Implementations§
Source§impl<'a> Clone for MutateInOptions<'a>
impl<'a> Clone for MutateInOptions<'a>
Source§fn clone(&self) -> MutateInOptions<'a>
fn clone(&self) -> MutateInOptions<'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 moreAuto Trait Implementations§
impl<'a> Freeze for MutateInOptions<'a>
impl<'a> !RefUnwindSafe for MutateInOptions<'a>
impl<'a> Send for MutateInOptions<'a>
impl<'a> Sync for MutateInOptions<'a>
impl<'a> Unpin for MutateInOptions<'a>
impl<'a> UnsafeUnpin for MutateInOptions<'a>
impl<'a> !UnwindSafe for MutateInOptions<'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