Trait jwt::token::signed::SignWithKey
source · pub trait SignWithKey<T> {
// Required method
fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result<T, Error>;
}
Expand description
Allow objects to be signed with a key.
Required Methods§
fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result<T, Error>
Object Safety§
This trait is not object safe.