Enum paseto::tokens::PasetoPublicKey[][src]

pub enum PasetoPublicKey<'a> {
    RSAPublicKey(&'a [u8]),
    ED25519KeyPair(&'a Ed25519KeyPair),
    ED25519PublicKey(&'a [u8]),
}
Expand description

Wraps the two paseto public key types so we can just have a validate_public_token method without splitting the two implementations.

Variants

RSAPublicKey(&'a [u8])
ED25519KeyPair(&'a Ed25519KeyPair)
ED25519PublicKey(&'a [u8])

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.