pub trait Signer {
// Required methods
fn name(&self) -> &str;
fn sign(&self, message: &[u8]) -> Result<Vec<u8>, JwtError>;
}Expand description
Trait for JWT signing algorithms.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".