pub enum RevocationReason {
RevocationReasonUnspecified,
RevocationReasonKeyCompromise,
RevocationReasonAffiliationChanged,
RevocationReasonSuperseded,
RevocationReasonPrivilegeWithdrawn,
}Expand description
RevocationReason : RevocationReason provides structured revocation reasons inspired by RFC 5280. Used in both admin and self-revocation flows. - REVOCATION_REASON_UNSPECIFIED: Default zero value. Use a specific reason; UNSPECIFIED is rejected by admin and self-revocation endpoints. - REVOCATION_REASON_KEY_COMPROMISE: The key was leaked or believed to be in the hands of an unauthorized party. - REVOCATION_REASON_AFFILIATION_CHANGED: The owning actor’s relationship with the issuer changed (e.g., role change, departure). - REVOCATION_REASON_SUPERSEDED: A new key has replaced this one as part of a rotation. - REVOCATION_REASON_PRIVILEGE_WITHDRAWN: Admin-only. The actor’s privilege to use this key was withdrawn by an operator. Self-revocation requests using this reason are rejected with InvalidArgument. Pair with description on RevokeAPIKeyRequest to record the operator-supplied justification.
RevocationReason provides structured revocation reasons inspired by RFC 5280. Used in both admin and self-revocation flows. - REVOCATION_REASON_UNSPECIFIED: Default zero value. Use a specific reason; UNSPECIFIED is rejected by admin and self-revocation endpoints. - REVOCATION_REASON_KEY_COMPROMISE: The key was leaked or believed to be in the hands of an unauthorized party. - REVOCATION_REASON_AFFILIATION_CHANGED: The owning actor’s relationship with the issuer changed (e.g., role change, departure). - REVOCATION_REASON_SUPERSEDED: A new key has replaced this one as part of a rotation. - REVOCATION_REASON_PRIVILEGE_WITHDRAWN: Admin-only. The actor’s privilege to use this key was withdrawn by an operator. Self-revocation requests using this reason are rejected with InvalidArgument. Pair with description on RevokeAPIKeyRequest to record the operator-supplied justification.
Variants§
RevocationReasonUnspecified
RevocationReasonKeyCompromise
RevocationReasonAffiliationChanged
RevocationReasonSuperseded
RevocationReasonPrivilegeWithdrawn
Trait Implementations§
Source§impl Clone for RevocationReason
impl Clone for RevocationReason
Source§fn clone(&self) -> RevocationReason
fn clone(&self) -> RevocationReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RevocationReason
impl Debug for RevocationReason
Source§impl Default for RevocationReason
impl Default for RevocationReason
Source§fn default() -> RevocationReason
fn default() -> RevocationReason
Source§impl<'de> Deserialize<'de> for RevocationReason
impl<'de> Deserialize<'de> for RevocationReason
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>,
Source§impl Display for RevocationReason
impl Display for RevocationReason
Source§impl Hash for RevocationReason
impl Hash for RevocationReason
Source§impl Ord for RevocationReason
impl Ord for RevocationReason
Source§fn cmp(&self, other: &RevocationReason) -> Ordering
fn cmp(&self, other: &RevocationReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RevocationReason
impl PartialEq for RevocationReason
Source§fn eq(&self, other: &RevocationReason) -> bool
fn eq(&self, other: &RevocationReason) -> bool
self and other values to be equal, and is used by ==.