pub struct Session {
pub session_id: String,
pub issuer_kid: String,
pub issued_at_micros: u64,
pub parent_chain: Vec<String>,
}Expand description
The unit of authorship. Every projection projects from this.
Composition: a child session adds one delegation hop to
parent_chain and gets its own session_id (the SPIFFE id minted
by the issuer for this hop). The issuer’s pinned key id (kid)
stays the same across hops within one boot.
Fields§
§session_id: StringSPIFFE id of this session’s subject.
issuer_kid: StringKey id of the issuer that signed this session’s delegation.
issued_at_micros: u64Microseconds since UNIX epoch when the session was issued.
parent_chain: Vec<String>Delegation chain — SPIFFE ids of every prior hop. Empty for root sessions, non-empty for child sessions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Session, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Session, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Session
impl Serialize for Session
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze 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