Struct biscuit::jwk::JWK
[−]
[src]
pub struct JWK<T> { pub common: CommonParameters, pub algorithm: AlgorithmParameters, pub additional: T, }
A JSON object that represents a cryptographic key.
The members of the object represent properties of the key, including its value.
Type T
is a struct representing additional JWK properties
Fields
common: CommonParameters
Common JWK parameters
algorithm: AlgorithmParameters
Key algorithm specific parameters
additional: T
Additional JWK parameters
Methods
impl<T: Serialize + DeserializeOwned> JWK<T>
[src]
fn new_octect_key(key: &[u8], additional: T) -> Self
Convenience to create a new bare-bones Octect key
fn clone_without_additional(&self) -> JWK<Empty>
Convenience function to strip out the additional fields
fn key_type(&self) -> KeyType
Returns the type of key represented by this key
fn octect_key(&self) -> Result<&[u8], Error>
Return the byte sequence of an octect key
Trait Implementations
impl<T: Clone> Clone for JWK<T>
[src]
fn clone(&self) -> JWK<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for JWK<T>
[src]
impl<T: Eq> Eq for JWK<T>
[src]
impl<T: PartialEq> PartialEq for JWK<T>
[src]
fn eq(&self, __arg_0: &JWK<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &JWK<T>) -> bool
This method tests for !=
.
impl<T: Serialize> Serialize for JWK<T>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de, T> Deserialize<'de> for JWK<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more