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
ED25519KeyPair(&'a Ed25519KeyPair)
Auto Trait Implementations
impl<'a> RefUnwindSafe for PasetoPublicKey<'a>
impl<'a> Send for PasetoPublicKey<'a>
impl<'a> Sync for PasetoPublicKey<'a>
impl<'a> Unpin for PasetoPublicKey<'a>
impl<'a> UnwindSafe for PasetoPublicKey<'a>