pub struct SsoSession {
pub login_id: String,
pub clients: Vec<String>,
pub create_time: DateTime<Utc>,
pub last_active_time: DateTime<Utc>,
}Expand description
Global SSO session tracking client apps. 跟踪各客户端应用的全局 SSO 会话。
Fields§
§login_id: StringUser login id. 用户登录 id。
clients: Vec<String>Logged-in client URLs. 已登录的客户端 URL 列表。
create_time: DateTime<Utc>Creation time. 创建时间。
last_active_time: DateTime<Utc>Last activity time. 最后活动时间。
Implementations§
Source§impl SsoSession
impl SsoSession
Sourcepub fn add_client(&mut self, service: String)
pub fn add_client(&mut self, service: String)
Add client if not already listed. 若尚未在列表中则添加客户端。
Sourcepub fn remove_client(&mut self, service: &str)
pub fn remove_client(&mut self, service: &str)
Remove a client URL. 移除客户端 URL。
Trait Implementations§
Source§impl Clone for SsoSession
impl Clone for SsoSession
Source§fn clone(&self) -> SsoSession
fn clone(&self) -> SsoSession
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 SsoSession
impl Debug for SsoSession
Source§impl<'de> Deserialize<'de> for SsoSession
impl<'de> Deserialize<'de> for SsoSession
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 SsoSession
impl RefUnwindSafe for SsoSession
impl Send for SsoSession
impl Sync for SsoSession
impl Unpin for SsoSession
impl UnsafeUnpin for SsoSession
impl UnwindSafe for SsoSession
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