pub struct Session {
pub device_id: String,
pub device_did: String,
pub scopes: Vec<String>,
pub expires_at: String,
pub credential: Option<String>,
}Expand description
Verified (or renewed) session identity returned by the host bus.
Fields§
§device_id: StringStable device id.
device_did: StringDevice DID.
scopes: Vec<String>Granted scopes.
expires_at: StringRFC3339 expiry.
credential: Option<String>Fresh credential (renew only); never logged.
Trait Implementations§
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Forget for Session
impl Freeze for Session
impl Move for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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