#[non_exhaustive]pub enum Issuer {
Idp,
Nostr,
ApiKey,
Oidc,
Key,
}Expand description
Who vouches for a Principal’s subject.
The set is deliberately open for extension but closed for guessing:
#[non_exhaustive]lets a later build add an authenticator (NIP-05, WebAuthn, mTLS, …) without it being a breaking change for downstreammatcharms; butIssuer::parsehas an explicit arm per known issuer and rejects anything else. An unknown prefix is aPrincipalParseError::UnknownIssuer, never a silently-accepted opaque string. Adding an issuer therefore requires adding its validation rule in the same commit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Idp
plexus-idp: a server-minted UUID v4 (plexus-idp/src/core.rs).
Nostr
A self-sovereign nostr identity: a 32-byte secp256k1 x-only pubkey.
ApiKey
A machine credential minted as an API key.
Oidc
A subject an OIDC provider other than plexus-idp vouches for, behind a
provider adapter: oidc:<provider>/<sub> (IDENTITY-13). The provider
is the adapter’s configured name (auth0), never the issuer URL.
Key
An Ed25519 public key an agent holds (IDENTITY-41): key:<64 hex>,
the 32-byte key in lowercase hex. A key proof (plexus-key.…,
adapters::KeyProofAdapter) proves it.
Implementations§
Trait Implementations§
impl Copy for Issuer
impl Eq for Issuer
Source§impl Ord for Issuer
impl Ord for Issuer
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Issuer
impl PartialOrd for Issuer
impl StructuralPartialEq for Issuer
Auto Trait Implementations§
impl Forget for Issuer
impl Freeze for Issuer
impl Move for Issuer
impl RefUnwindSafe for Issuer
impl Send for Issuer
impl Sync for Issuer
impl Unpin for Issuer
impl UnsafeUnpin for Issuer
impl UnwindSafe for Issuer
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