pub enum CredentialKind {
Bearer,
Basic,
Raw,
HmacSha256,
Ed25519,
AwsSigv4,
JwtRs256,
}Expand description
The declared kind of a credential. kind exists so the checker can
statically reject sign … with stripe_api (DR-0053 §5); the custodian’s
registered kind is authoritative and mismatch is a check error.
Variants§
Bearer
An opaque bearer token (Authorization: Bearer …).
Basic
HTTP basic credentials.
Raw
Raw material substituted verbatim at the marked slot.
HmacSha256
A symmetric HMAC-SHA-256 key (Stripe/GitHub/Slack webhooks).
Ed25519
An Ed25519 signing key.
AwsSigv4
An AWS SigV4 secret key (signs via the §7 derivation chain).
JwtRs256
An RS256 private key (GitHub App JWTs, service accounts).
Implementations§
Trait Implementations§
Source§impl Clone for CredentialKind
impl Clone for CredentialKind
Source§fn clone(&self) -> CredentialKind
fn clone(&self) -> CredentialKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CredentialKind
Source§impl Debug for CredentialKind
impl Debug for CredentialKind
Source§impl<'de> Deserialize<'de> for CredentialKind
impl<'de> Deserialize<'de> for CredentialKind
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
Source§impl Display for CredentialKind
impl Display for CredentialKind
impl Eq for CredentialKind
Source§impl Hash for CredentialKind
impl Hash for CredentialKind
Source§impl PartialEq for CredentialKind
impl PartialEq for CredentialKind
Source§impl Serialize for CredentialKind
impl Serialize for CredentialKind
impl StructuralPartialEq for CredentialKind
Auto Trait Implementations§
impl Freeze for CredentialKind
impl RefUnwindSafe for CredentialKind
impl Send for CredentialKind
impl Sync for CredentialKind
impl Unpin for CredentialKind
impl UnsafeUnpin for CredentialKind
impl UnwindSafe for CredentialKind
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