pub struct SaSession {
pub id: String,
pub create_time: DateTime<Utc>,
pub data: HashMap<String, Value>,
}Expand description
Session 对象
Fields§
§id: StringSession ID
create_time: DateTime<Utc>创建时间
data: HashMap<String, Value>数据存储
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SaSession
impl<'de> Deserialize<'de> for SaSession
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 SaSession
impl RefUnwindSafe for SaSession
impl Send for SaSession
impl Sync for SaSession
impl Unpin for SaSession
impl UnwindSafe for SaSession
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