pub struct MmdsState {
pub data_json: String,
pub token_ttl_seconds: Option<u32>,
}Expand description
MMDS data store + V2 token store, captured at snapshot time.
The store is held as a JSON-serialized string (not serde_json::Value)
because the snapshot envelope encodes via bitcode, which does not implement
deserialize_any and therefore cannot decode serde_json::Value directly.
Use Self::data_value / Self::with_data to round-trip through a
structured value.
Fields§
§data_json: StringThe MMDS data store, JSON-serialized. "null" for an empty store.
token_ttl_seconds: Option<u32>V2 session-token TTL, in seconds. None means MMDS V1 was active.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MmdsState
impl<'de> Deserialize<'de> for MmdsState
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
impl Eq for MmdsState
impl StructuralPartialEq for MmdsState
Auto Trait Implementations§
impl Freeze for MmdsState
impl RefUnwindSafe for MmdsState
impl Send for MmdsState
impl Sync for MmdsState
impl Unpin for MmdsState
impl UnsafeUnpin for MmdsState
impl UnwindSafe for MmdsState
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