pub struct LoginStatus {
pub online: bool,
pub user_id: Option<u64>,
pub attribution: Option<String>,
pub credential: Option<LoginCredentialStatus>,
pub auth_refresh: ClientSigRefreshStatus,
}Fields§
§online: boolauth_result 是否成功(Platform 登录通过 + accounts 拉到 = true)
user_id: Option<u64>登录账户的主 uid(来自 HTTP auth 响应的 user_id 字段)
REST admin status 是 admin-scoped daemon-local 诊断面,operator 看全量 uid(admin scope 本身即权限边界,不对 operator 再脱敏)。
attribution: Option<String>归属地域:"CN" / "HK" / "US" 等。
决定 auth 域名(见 CLAUDE.md user_attribution 表)。
credential: Option<LoginCredentialStatus>Cached tgtgt ticket age diagnostics. Omitted when daemon is offline or no matching credentials file is available.
auth_refresh: ClientSigRefreshStatusLong-runner auth refresh knobs actually active for this daemon process.
Trait Implementations§
Source§impl Clone for LoginStatus
impl Clone for LoginStatus
Source§fn clone(&self) -> LoginStatus
fn clone(&self) -> LoginStatus
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 LoginStatus
impl Debug for LoginStatus
Auto Trait Implementations§
impl Freeze for LoginStatus
impl RefUnwindSafe for LoginStatus
impl Send for LoginStatus
impl Sync for LoginStatus
impl Unpin for LoginStatus
impl UnsafeUnpin for LoginStatus
impl UnwindSafe for LoginStatus
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