pub enum TrustProof {
Hmac,
JwtSig,
OAuthCodeExchange,
Ed25519,
}Expand description
Canonical identifiers of the verifiers that can produce a
Trusted<T> from an Untrusted<T>. Each identifier maps to a
runtime impl in [crate::trust_verifiers].
Variants§
Hmac
HMAC-SHA256 over the raw payload with a shared secret; used for webhook signature verification (Stripe, GitHub, generic HMAC).
JwtSig
JWT signature verification (RS256/RS384/RS512) via a JWKS
endpoint. Shared with Fase 10.e’s [crate::jwt_verifier].
OAuthCodeExchange
OAuth2 authorization-code exchange using PKCE S256. Returns an access token proof that the bearer controls the code verifier.
Ed25519
Ed25519 detached signature verification (Sigstore-style).
Implementations§
Source§impl TrustProof
impl TrustProof
Sourcepub const ALL: &'static [TrustProof]
pub const ALL: &'static [TrustProof]
Every variant. Keeping this as an explicit slice ensures the compiler errors if we add a variant without updating the catalogue consumers.
Sourcepub fn slug(self) -> &'static str
pub fn slug(self) -> &'static str
Slug used in source text — appears in #[refines(...)]
annotations and in crate::type_checker diagnostics.
Sourcepub fn from_slug(slug: &str) -> Option<TrustProof>
pub fn from_slug(slug: &str) -> Option<TrustProof>
Resolve a slug to a proof, returning None for unknown
identifiers. The checker uses this to reject annotations that
don’t map to the closed catalogue.
Trait Implementations§
Source§impl Clone for TrustProof
impl Clone for TrustProof
Source§fn clone(&self) -> TrustProof
fn clone(&self) -> TrustProof
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TrustProof
Source§impl Debug for TrustProof
impl Debug for TrustProof
Source§impl Display for TrustProof
impl Display for TrustProof
impl Eq for TrustProof
Source§impl Hash for TrustProof
impl Hash for TrustProof
Source§impl PartialEq for TrustProof
impl PartialEq for TrustProof
Source§fn eq(&self, other: &TrustProof) -> bool
fn eq(&self, other: &TrustProof) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrustProof
Auto Trait Implementations§
impl Freeze for TrustProof
impl RefUnwindSafe for TrustProof
impl Send for TrustProof
impl Sync for TrustProof
impl Unpin for TrustProof
impl UnsafeUnpin for TrustProof
impl UnwindSafe for TrustProof
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more