pub struct PublicKeyJwk {
pub nonce: Option<Base64urlUInt>,
/* private fields */
}Expand description
Public Key JWK (JSON Web Key)
Wraps ssi_jwk::JWK, while allowing a nonce property, and disallowing private key
properties (“d”).
Sidetree may allow a nonce property in public key JWKs (§6.2.2 JWK Nonce).
Fields§
§nonce: Option<Base64urlUInt>Trait Implementations§
Source§impl Clone for PublicKeyJwk
impl Clone for PublicKeyJwk
Source§fn clone(&self) -> PublicKeyJwk
fn clone(&self) -> PublicKeyJwk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicKeyJwk
impl Debug for PublicKeyJwk
Source§impl<'de> Deserialize<'de> for PublicKeyJwk
impl<'de> Deserialize<'de> for PublicKeyJwk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PublicKeyJwk
impl PartialEq for PublicKeyJwk
Source§impl Serialize for PublicKeyJwk
impl Serialize for PublicKeyJwk
Source§impl TryFrom<JWK> for PublicKeyJwk
impl TryFrom<JWK> for PublicKeyJwk
Source§impl TryFrom<PublicKeyJwk> for JWK
Convert PublicKeyJwk to JWK.
impl TryFrom<PublicKeyJwk> for JWK
Convert PublicKeyJwk to JWK.
Note: nonce property is dropped.
Source§type Error = JWKFromPublicKeyJwkError
type Error = JWKFromPublicKeyJwkError
The type returned in the event of a conversion error.
impl Eq for PublicKeyJwk
impl StructuralPartialEq for PublicKeyJwk
Auto Trait Implementations§
impl Freeze for PublicKeyJwk
impl RefUnwindSafe for PublicKeyJwk
impl Send for PublicKeyJwk
impl Sync for PublicKeyJwk
impl Unpin for PublicKeyJwk
impl UnwindSafe for PublicKeyJwk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.