Trait jwt_simple::algorithms::RSAKeyPairLike  
source · pub trait RSAKeyPairLike {
    // Required methods
    fn jwt_alg_name() -> &'static str;
    fn key_pair(&self) -> &RSAKeyPair;
    fn key_id(&self) -> &Option<String>;
    fn metadata(&self) -> &Option<KeyMetadata>;
    fn attach_metadata(&mut self, metadata: KeyMetadata) -> Result<(), Error>;
    fn hash(message: &[u8]) -> Vec<u8>;
    fn padding_scheme(&self) -> PaddingScheme;
    // Provided method
    fn sign<CustomClaims: Serialize + DeserializeOwned>(
        &self,
        claims: JWTClaims<CustomClaims>
    ) -> Result<String, Error> { ... }
}