pub struct RuntimeAccountInfo {
pub schema_version: u8,
pub state: AccountSessionState,
pub api_base: String,
pub account_id: Option<String>,
pub session_id: Option<String>,
pub scopes: Vec<String>,
pub expires_at: Option<String>,
}Expand description
Token-free account receipt returned by GET /v1/runtime/info.
Fields§
§schema_version: u8Runtime account receipt schema version.
state: AccountSessionStateCurrent account-session state.
api_base: StringExact account API origin used to locate the secure session.
account_id: Option<String>Stable account identifier, present only when read from secure storage.
session_id: Option<String>Durable session identifier, present only when read from secure storage.
scopes: Vec<String>Explicit session scopes from secure storage; never inferred from identity.
expires_at: Option<String>Access-credential expiration, when the stored value is valid RFC 3339.
Implementations§
Source§impl RuntimeAccountInfo
impl RuntimeAccountInfo
Sourcepub fn signed_out(api_base: impl Into<String>) -> Self
pub fn signed_out(api_base: impl Into<String>) -> Self
Build the fail-closed signed-out receipt for an API origin.
Trait Implementations§
Source§impl Clone for RuntimeAccountInfo
impl Clone for RuntimeAccountInfo
Source§fn clone(&self) -> RuntimeAccountInfo
fn clone(&self) -> RuntimeAccountInfo
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 RuntimeAccountInfo
impl Debug for RuntimeAccountInfo
impl Eq for RuntimeAccountInfo
Source§impl PartialEq for RuntimeAccountInfo
impl PartialEq for RuntimeAccountInfo
Source§impl Serialize for RuntimeAccountInfo
impl Serialize for RuntimeAccountInfo
impl StructuralPartialEq for RuntimeAccountInfo
Auto Trait Implementations§
impl Freeze for RuntimeAccountInfo
impl RefUnwindSafe for RuntimeAccountInfo
impl Send for RuntimeAccountInfo
impl Sync for RuntimeAccountInfo
impl Unpin for RuntimeAccountInfo
impl UnsafeUnpin for RuntimeAccountInfo
impl UnwindSafe for RuntimeAccountInfo
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