pub struct SessionSnapshot {
pub session_id: String,
pub created_at: u64,
pub last_activity: u64,
pub version: u32,
pub next_positive_id: i64,
pub next_negative_id: i64,
pub imports: HashMap<i64, SerializableImportValue>,
pub exports: HashMap<i64, SerializableExportValue>,
pub variables: HashMap<String, Value>,
pub max_age_seconds: u64,
pub capabilities: Vec<String>,
}
Expand description
Serializable session state for resume tokens
Fields§
§session_id: String
Session metadata
created_at: u64
§last_activity: u64
§version: u32
§next_positive_id: i64
ID allocation state
next_negative_id: i64
§imports: HashMap<i64, SerializableImportValue>
Import table state
exports: HashMap<i64, SerializableExportValue>
Export table state
variables: HashMap<String, Value>
Variable state
max_age_seconds: u64
Session configuration
capabilities: Vec<String>
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
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 Debug for SessionSnapshot
impl Debug for SessionSnapshot
Source§impl<'de> Deserialize<'de> for SessionSnapshot
impl<'de> Deserialize<'de> for SessionSnapshot
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 SessionSnapshot
impl !RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl !UnwindSafe for SessionSnapshot
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