#[non_exhaustive]pub struct PrependOptions<'a> {
pub key: &'a [u8],
pub scope_name: &'a str,
pub collection_name: &'a str,
pub value: &'a [u8],
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§value: &'a [u8]§cas: Option<u64>§durability_level: Option<DurabilityLevel>§retry_strategy: Arc<dyn RetryStrategy>Implementations§
Source§impl<'a> PrependOptions<'a>
impl<'a> PrependOptions<'a>
pub fn new( key: &'a [u8], scope_name: &'a str, collection_name: &'a str, value: &'a [u8], ) -> 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 PrependOptions<'a>
impl<'a> Clone for PrependOptions<'a>
Source§fn clone(&self) -> PrependOptions<'a>
fn clone(&self) -> PrependOptions<'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 PrependOptions<'a>
impl<'a> !RefUnwindSafe for PrependOptions<'a>
impl<'a> Send for PrependOptions<'a>
impl<'a> Sync for PrependOptions<'a>
impl<'a> Unpin for PrependOptions<'a>
impl<'a> UnsafeUnpin for PrependOptions<'a>
impl<'a> !UnwindSafe for PrependOptions<'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