pub struct DIDPeerService {
pub _type: String,
pub service_end_point: PeerServiceEndPoint,
pub id: Option<String>,
}
Expand description
DID Service structure in abbreviated format
Fields§
§_type: String
§service_end_point: PeerServiceEndPoint
§id: Option<String>
id is optional, if not provided, it will be set to #service, #service-1, #service-2, etc
Trait Implementations§
Source§impl Debug for DIDPeerService
impl Debug for DIDPeerService
Source§impl<'de> Deserialize<'de> for DIDPeerService
impl<'de> Deserialize<'de> for DIDPeerService
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.
Auto Trait Implementations§
impl Freeze for DIDPeerService
impl RefUnwindSafe for DIDPeerService
impl Send for DIDPeerService
impl Sync for DIDPeerService
impl Unpin for DIDPeerService
impl UnwindSafe for DIDPeerService
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