pub enum ContextOperation {
Get,
Set,
Delete,
List,
Exists,
Clear,
}Expand description
Context operation type
Variants§
Get
Get a value from context
Set
Set a value in context
Delete
Delete a value from context
List
List all keys
Exists
Check if key exists
Clear
Clear all context
Implementations§
Trait Implementations§
Source§impl Clone for ContextOperation
impl Clone for ContextOperation
Source§fn clone(&self) -> ContextOperation
fn clone(&self) -> ContextOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContextOperation
impl Debug for ContextOperation
Source§impl Default for ContextOperation
impl Default for ContextOperation
Source§impl<'de> Deserialize<'de> for ContextOperation
impl<'de> Deserialize<'de> for ContextOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContextOperation
impl RefUnwindSafe for ContextOperation
impl Send for ContextOperation
impl Sync for ContextOperation
impl Unpin for ContextOperation
impl UnsafeUnpin for ContextOperation
impl UnwindSafe for ContextOperation
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