pub struct Key {Show 19 fields
pub id: Option<String>,
pub key: Option<Secret>,
pub key_type: Option<String>,
pub expiry_seconds: Option<i64>,
pub created: Option<String>,
pub updated: Option<String>,
pub expires: Option<String>,
pub revoked: Option<String>,
pub capabilities: Option<KeyCapabilities>,
pub scopes: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub description: Option<String>,
pub invalid: Option<bool>,
pub user_id: Option<String>,
pub audience: Option<String>,
pub issuer: Option<String>,
pub subject: Option<String>,
pub custom_claim_rules: Option<BTreeMap<String, String>>,
pub unknown: Unknown,
}Expand description
An auth key, an API access token, an OAuth client or a federated identity.
Fields§
§id: Option<String>§key: Option<Secret>The secret itself, sent only in the answer that creates it. There is no second chance to read it.
key_type: Option<String>One of KEY_TYPES.
expiry_seconds: Option<i64>Auth keys only.
created: Option<String>§updated: Option<String>§expires: Option<String>§revoked: Option<String>§capabilities: Option<KeyCapabilities>§scopes: Option<Vec<String>>OAuth clients and federated identities: what the tokens they mint are allowed to do.
description: Option<String>§invalid: Option<bool>§user_id: Option<String>§audience: Option<String>Federated identities: the audience the JWT must claim.
issuer: Option<String>Federated identities: the issuer whose JWTs are accepted.
subject: Option<String>Federated identities: the subject the JWT must claim.
custom_claim_rules: Option<BTreeMap<String, String>>Federated identities: claims mapped to values, for narrowing which JWTs from the issuer are accepted.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
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
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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