pub struct DidPeerCreate {
pub keys: Vec<DIDPeerCreateKeys>,
pub services: Option<Vec<DIDService>>,
}
Expand description
DidPeerCreate structure, input from JS into create_did_peer call Contains the required keys and optional services to create a new did:peer DID
DIDPeerCreate { keys: Vec<DIDPeerCreateKeys> (Required: Must contain at least one key for Encryption and another key for Verification) services: Option<Vec<DIDService> (Optional: Array of DIDService structs to add to the DID Document) }
Fields§
§keys: Vec<DIDPeerCreateKeys>
§services: Option<Vec<DIDService>>
Implementations§
Source§impl DidPeerCreate
impl DidPeerCreate
pub fn new( keys: Vec<DIDPeerCreateKeys>, services: Option<Vec<DIDService>>, ) -> Self
Trait Implementations§
Source§impl Clone for DidPeerCreate
impl Clone for DidPeerCreate
Source§fn clone(&self) -> DidPeerCreate
fn clone(&self) -> DidPeerCreate
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 From<DidPeerCreate> for JsValue
impl From<DidPeerCreate> for JsValue
Source§fn from(value: DidPeerCreate) -> Self
fn from(value: DidPeerCreate) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DidPeerCreate
impl FromWasmAbi for DidPeerCreate
Source§impl IntoWasmAbi for DidPeerCreate
impl IntoWasmAbi for DidPeerCreate
Source§impl LongRefFromWasmAbi for DidPeerCreate
impl LongRefFromWasmAbi for DidPeerCreate
Source§impl OptionFromWasmAbi for DidPeerCreate
impl OptionFromWasmAbi for DidPeerCreate
Source§impl OptionIntoWasmAbi for DidPeerCreate
impl OptionIntoWasmAbi for DidPeerCreate
Source§impl RefFromWasmAbi for DidPeerCreate
impl RefFromWasmAbi for DidPeerCreate
Source§type Anchor = RcRef<DidPeerCreate>
type Anchor = RcRef<DidPeerCreate>
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 DidPeerCreate
impl RefMutFromWasmAbi for DidPeerCreate
Source§impl TryFromJsValue for DidPeerCreate
impl TryFromJsValue for DidPeerCreate
Source§impl VectorFromWasmAbi for DidPeerCreate
impl VectorFromWasmAbi for DidPeerCreate
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DidPeerCreate]>
Source§impl VectorIntoWasmAbi for DidPeerCreate
impl VectorIntoWasmAbi for DidPeerCreate
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DidPeerCreate]>) -> Self::Abi
Source§impl WasmDescribeVector for DidPeerCreate
impl WasmDescribeVector for DidPeerCreate
impl SupportsConstructor for DidPeerCreate
impl SupportsInstanceProperty for DidPeerCreate
impl SupportsStaticProperty for DidPeerCreate
Auto Trait Implementations§
impl Freeze for DidPeerCreate
impl RefUnwindSafe for DidPeerCreate
impl Send for DidPeerCreate
impl Sync for DidPeerCreate
impl Unpin for DidPeerCreate
impl UnwindSafe for DidPeerCreate
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§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> 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::Abi
Source§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
.