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