pub struct SessionToken {
pub claims: SessionClaims,
pub signature: String,
pub members_zone_key: Option<String>,
}Expand description
A session token: claims + Ed25519 signature.
Fields§
§claims: SessionClaims§signature: StringHex-encoded Ed25519 signature over the serialized claims.
members_zone_key: Option<String>Anonymous mode (ADR-042): the hex-encoded members.yaml zone key, cached for the life of the session so any command can resolve opaque ids to e-mails without re-entering the passphrase (the concept’s “session ⇒ resolvable”). Auxiliary local state, not part of the signed claims; the session file is owner-only (0600), the same trust boundary as the session credential itself.
Trait Implementations§
Source§impl Debug for SessionToken
impl Debug for SessionToken
Source§impl<'de> Deserialize<'de> for SessionToken
impl<'de> Deserialize<'de> for SessionToken
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 SessionToken
impl RefUnwindSafe for SessionToken
impl Send for SessionToken
impl Sync for SessionToken
impl Unpin for SessionToken
impl UnsafeUnpin for SessionToken
impl UnwindSafe for SessionToken
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