pub enum DIDDocumentOperation {
SetDidDocument(Represented),
AddToDidDocument(HashMap<String, Value>),
RemoveFromDidDocument(Vec<String>),
SetVerificationMethod {
vmm: DIDVerificationMethod,
purposes: Vec<ProofPurpose>,
},
SetService(Service),
RemoveVerificationMethod(DIDURLBuf),
RemoveService(DIDURLBuf),
}
Expand description
DID Document Operation
This should represent didDocument and didDocumentOperation specified by DID Registration.
Variants§
SetDidDocument(Represented)
Set the contents of the DID document
setDidDocument operation defined by DIF DID Registration
AddToDidDocument(HashMap<String, Value>)
Add properties to the DID document
addToDidDocument operation defined by DIF DID Registration
RemoveFromDidDocument(Vec<String>)
Remove properties from the DID document
removeFromDidDocument operation defined by DIF Registration
SetVerificationMethod
Add or update a verification method in the DID document
SetService(Service)
Add or update a service map in the DID document
RemoveVerificationMethod(DIDURLBuf)
Remove a verification method in the DID document
RemoveService(DIDURLBuf)
Add or update a service map in the DID document
Trait Implementations§
source§impl Clone for DIDDocumentOperation
impl Clone for DIDDocumentOperation
source§fn clone(&self) -> DIDDocumentOperation
fn clone(&self) -> DIDDocumentOperation
Returns a copy 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 DIDDocumentOperation
impl Debug for DIDDocumentOperation
source§impl<'de> Deserialize<'de> for DIDDocumentOperation
impl<'de> Deserialize<'de> for DIDDocumentOperation
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
Auto Trait Implementations§
impl Freeze for DIDDocumentOperation
impl RefUnwindSafe for DIDDocumentOperation
impl Send for DIDDocumentOperation
impl Sync for DIDDocumentOperation
impl Unpin for DIDDocumentOperation
impl UnwindSafe for DIDDocumentOperation
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
.