pub enum ContextPersistence {
Ephemeral,
Ttl(Duration),
Permanent,
}Expand description
Context persistence mode.
Variants§
Ephemeral
Context is not persisted
Ttl(Duration)
Context persists for the specified duration
Permanent
Context persists permanently
Trait Implementations§
Source§impl Clone for ContextPersistence
impl Clone for ContextPersistence
Source§fn clone(&self) -> ContextPersistence
fn clone(&self) -> ContextPersistence
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 ComposeSchema for ContextPersistence
impl ComposeSchema for ContextPersistence
Source§impl Debug for ContextPersistence
impl Debug for ContextPersistence
Source§impl<'de> Deserialize<'de> for ContextPersistence
impl<'de> Deserialize<'de> for ContextPersistence
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
Source§impl PartialEq for ContextPersistence
impl PartialEq for ContextPersistence
Source§impl Serialize for ContextPersistence
impl Serialize for ContextPersistence
Source§impl ToSchema for ContextPersistence
impl ToSchema for ContextPersistence
impl StructuralPartialEq for ContextPersistence
Auto Trait Implementations§
impl Freeze for ContextPersistence
impl RefUnwindSafe for ContextPersistence
impl Send for ContextPersistence
impl Sync for ContextPersistence
impl Unpin for ContextPersistence
impl UnwindSafe for ContextPersistence
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