pub struct DIDService {
pub _type: Option<String>,
pub uri: String,
pub accept: Vec<String>,
pub routing_keys: Vec<String>,
pub id: Option<String>,
}
Expand description
DIDService structure, input into the DidPeerCreate structure
DIDService {
_type: Option<String>
(Optional: If not specified, defaults to ‘DIDCommMessaging’)
uri: String
(Required: Service endpoint URI. E.g. https://localhost:7130/)
accept: Vec<String>
(Array of possible message types this service accepts)
routing_keys: Vec<String>
(Array of possible keys this Service endpoint can use)
id: Option<String>
(Optional: ID of the service. If not specified, defaults to #service)
}
Fields§
§_type: Option<String>
§uri: String
§accept: Vec<String>
§routing_keys: Vec<String>
§id: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for DIDService
impl Clone for DIDService
Source§fn clone(&self) -> DIDService
fn clone(&self) -> DIDService
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<'de> Deserialize<'de> for DIDService
impl<'de> Deserialize<'de> for DIDService
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<&DIDService> for DIDPeerService
impl From<&DIDService> for DIDPeerService
Source§fn from(service: &DIDService) -> Self
fn from(service: &DIDService) -> Self
Converts to this type from the input type.
Source§impl From<DIDService> for DIDPeerService
impl From<DIDService> for DIDPeerService
Source§fn from(service: DIDService) -> Self
fn from(service: DIDService) -> Self
Converts to this type from the input type.
Source§impl From<DIDService> for JsValue
impl From<DIDService> for JsValue
Source§fn from(value: DIDService) -> Self
fn from(value: DIDService) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DIDService
impl FromWasmAbi for DIDService
Source§impl IntoWasmAbi for DIDService
impl IntoWasmAbi for DIDService
Source§impl LongRefFromWasmAbi for DIDService
impl LongRefFromWasmAbi for DIDService
Source§impl OptionFromWasmAbi for DIDService
impl OptionFromWasmAbi for DIDService
Source§impl OptionIntoWasmAbi for DIDService
impl OptionIntoWasmAbi for DIDService
Source§impl RefFromWasmAbi for DIDService
impl RefFromWasmAbi for DIDService
Source§type Anchor = RcRef<DIDService>
type Anchor = RcRef<DIDService>
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 DIDService
impl RefMutFromWasmAbi for DIDService
Source§impl Serialize for DIDService
impl Serialize for DIDService
Source§impl TryFromJsValue for DIDService
impl TryFromJsValue for DIDService
Source§impl VectorFromWasmAbi for DIDService
impl VectorFromWasmAbi for DIDService
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DIDService]>
Source§impl VectorIntoWasmAbi for DIDService
impl VectorIntoWasmAbi for DIDService
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DIDService]>) -> Self::Abi
Source§impl WasmDescribeVector for DIDService
impl WasmDescribeVector for DIDService
impl SupportsConstructor for DIDService
impl SupportsInstanceProperty for DIDService
impl SupportsStaticProperty for DIDService
Auto Trait Implementations§
impl Freeze for DIDService
impl RefUnwindSafe for DIDService
impl Send for DIDService
impl Sync for DIDService
impl Unpin for DIDService
impl UnwindSafe for DIDService
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
.