pub struct CapabilityTokenInfo {
pub token_id: String,
pub format: CapabilityTokenFormat,
pub subject: String,
pub issuer: String,
pub issued_at: u64,
pub expires_at: Option<u64>,
pub status: TokenStatus,
pub permissions: Vec<String>,
}Expand description
Information about a capability token
Fields§
§token_id: StringUnique identifier for this token
format: CapabilityTokenFormatToken format
subject: StringSubject the token was issued for
issuer: StringIssuer of the token
issued_at: u64Creation timestamp
expires_at: Option<u64>Expiration timestamp (if applicable)
status: TokenStatusCurrent status of the token
permissions: Vec<String>Permissions granted by this token
Trait Implementations§
Source§impl Clone for CapabilityTokenInfo
impl Clone for CapabilityTokenInfo
Source§fn clone(&self) -> CapabilityTokenInfo
fn clone(&self) -> CapabilityTokenInfo
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 CapabilityTokenInfo
impl Debug for CapabilityTokenInfo
Source§impl<'de> Deserialize<'de> for CapabilityTokenInfo
impl<'de> Deserialize<'de> for CapabilityTokenInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityTokenInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityTokenInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CapabilityTokenInfo
impl Serialize for CapabilityTokenInfo
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
Auto Trait Implementations§
impl Freeze for CapabilityTokenInfo
impl RefUnwindSafe for CapabilityTokenInfo
impl Send for CapabilityTokenInfo
impl Sync for CapabilityTokenInfo
impl Unpin for CapabilityTokenInfo
impl UnsafeUnpin for CapabilityTokenInfo
impl UnwindSafe for CapabilityTokenInfo
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