pub trait Constrainable {
    // Required method
    fn kty(&self) -> JsonWebKeyType;
    // Provided methods
    fn alg(&self) -> Option<&JsonWebSignatureAlg> { ... }
    fn algs(&self) -> &[JsonWebSignatureAlg] { ... }
    fn kid(&self) -> Option<&str> { ... }
    fn use_(&self) -> Option<&JsonWebKeyUse> { ... }
}Required Methods§
Sourcefn kty(&self) -> JsonWebKeyType
 
fn kty(&self) -> JsonWebKeyType
Key type (kty) of this key
Provided Methods§
fn alg(&self) -> Option<&JsonWebSignatureAlg>
Sourcefn algs(&self) -> &[JsonWebSignatureAlg]
 
fn algs(&self) -> &[JsonWebSignatureAlg]
List of available algorithms for this key
Sourcefn use_(&self) -> Option<&JsonWebKeyUse>
 
fn use_(&self) -> Option<&JsonWebKeyUse>
Usage specified for this key