pub struct PublicKeyEntry {
pub id: String,
pub type: String,
pub controller: Option<String>,
pub public_key: PublicKey,
pub purposes: Vec<ProofPurpose>,
}Expand description
Public Key Entry
Used by the add-public-keys and
replace DID state patch actions.
Specified in Sidetree §12.1.1 add-public-keys.
Fields§
§id: Stringid property
Maximum length: 50 in Base64url
type: StringVerification method type
controller: Option<String>Verification method controller (DID)
Maximum length may be set in Sidetree::MAX_CONTROLLER_LENGTH.
public_key: PublicKeypublicKeyJwk or publicKeyMultibase property
purposes: Vec<ProofPurpose>Trait Implementations§
Source§impl Clone for PublicKeyEntry
impl Clone for PublicKeyEntry
Source§fn clone(&self) -> PublicKeyEntry
fn clone(&self) -> PublicKeyEntry
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 PublicKeyEntry
impl Debug for PublicKeyEntry
Source§impl<'de> Deserialize<'de> for PublicKeyEntry
impl<'de> Deserialize<'de> for PublicKeyEntry
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 Serialize for PublicKeyEntry
impl Serialize for PublicKeyEntry
Auto Trait Implementations§
impl Freeze for PublicKeyEntry
impl RefUnwindSafe for PublicKeyEntry
impl Send for PublicKeyEntry
impl Sync for PublicKeyEntry
impl Unpin for PublicKeyEntry
impl UnsafeUnpin for PublicKeyEntry
impl UnwindSafe for PublicKeyEntry
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<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.