pub struct SsoSession {
pub login_id: String,
pub clients: Vec<String>,
pub create_time: DateTime<Utc>,
pub last_active_time: DateTime<Utc>,
}Expand description
SSO 全局会话 | SSO Global Session
跟踪用户在所有应用中的登录状态 Tracks user’s login status across all applications
Fields§
§login_id: String用户登录 ID | User login ID
clients: Vec<String>已登录的客户端列表 | List of logged-in clients
create_time: DateTime<Utc>会话创建时间 | Session 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 to session
如果客户端不在列表中,则添加 Adds client if not already in the list
Sourcepub fn remove_client(&mut self, service: &str)
pub fn remove_client(&mut self, service: &str)
从会话中移除客户端 | Remove client from session
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§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 UnwindSafe for SsoSession
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)