pub struct DidDocument {
pub context: Vec<String>,
pub id: String,
pub verification_method: Option<Vec<KeyPair>>,
pub authentication: Option<Vec<String>>,
pub assertion_method: Option<Vec<String>>,
pub capability_delegation: Option<Vec<String>>,
pub capability_invocation: Option<Vec<String>>,
pub key_agreement: Option<Vec<KeyPair>>,
pub services: Option<Vec<Service>>,
}Fields§
§context: Vec<String>§id: String§verification_method: Option<Vec<KeyPair>>§authentication: Option<Vec<String>>§assertion_method: Option<Vec<String>>§capability_delegation: Option<Vec<String>>§capability_invocation: Option<Vec<String>>§key_agreement: Option<Vec<KeyPair>>§services: Option<Vec<Service>>Implementations§
source§impl DidDocument
impl DidDocument
Trait Implementations§
source§impl Clone for DidDocument
impl Clone for DidDocument
source§fn clone(&self) -> DidDocument
fn clone(&self) -> DidDocument
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<'de> Deserialize<'de> for DidDocument
impl<'de> Deserialize<'de> for DidDocument
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 From<DidDocument> for JsValue
impl From<DidDocument> for JsValue
source§fn from(value: DidDocument) -> Self
fn from(value: DidDocument) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for DidDocument
impl FromWasmAbi for DidDocument
source§impl IntoWasmAbi for DidDocument
impl IntoWasmAbi for DidDocument
source§impl LongRefFromWasmAbi for DidDocument
impl LongRefFromWasmAbi for DidDocument
source§impl OptionFromWasmAbi for DidDocument
impl OptionFromWasmAbi for DidDocument
source§impl OptionIntoWasmAbi for DidDocument
impl OptionIntoWasmAbi for DidDocument
source§impl RefFromWasmAbi for DidDocument
impl RefFromWasmAbi for DidDocument
source§type Anchor = RcRef<DidDocument>
type Anchor = RcRef<DidDocument>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for DidDocument
impl RefMutFromWasmAbi for DidDocument
source§impl Serialize for DidDocument
impl Serialize for DidDocument
source§impl TryFromJsValue for DidDocument
impl TryFromJsValue for DidDocument
source§impl VectorFromWasmAbi for DidDocument
impl VectorFromWasmAbi for DidDocument
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DidDocument]>
source§impl VectorIntoJsValue for DidDocument
impl VectorIntoJsValue for DidDocument
fn vector_into_jsvalue(vector: Box<[DidDocument]>) -> JsValue
source§impl VectorIntoWasmAbi for DidDocument
impl VectorIntoWasmAbi for DidDocument
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DidDocument]>) -> Self::Abi
source§impl WasmDescribeVector for DidDocument
impl WasmDescribeVector for DidDocument
Auto Trait Implementations§
impl Freeze for DidDocument
impl RefUnwindSafe for DidDocument
impl Send for DidDocument
impl Sync for DidDocument
impl Unpin for DidDocument
impl UnwindSafe for DidDocument
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> 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<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.