pub struct DidService {
pub id: Option<Iri>,
pub endpoints: Vec<Iri>,
}Expand description
Means of communicating or interacting with the DID subject or associated entities via one or more service endpoints. Examples include discovery services, agent services, social networking services, file storage services, and verifiable credential repository services.
The type https://www.w3.org/ns/did#Service.
Fields§
§id: Option<Iri>The IRI that identifies this object.
endpoints: Vec<Iri>A network address, such as an HTTP URL, at which services operate on behalf of a DID subject.
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 (const: unstable) · 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 DidService
impl Debug for DidService
Source§impl Default for DidService
impl Default for DidService
Source§fn default() -> DidService
fn default() -> DidService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DidService
impl<'de> Deserialize<'de> for DidService
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromJson for DidService
impl FromJson for DidService
Source§impl PartialEq for DidService
impl PartialEq for DidService
Source§impl Serialize for DidService
impl Serialize for DidService
impl StructuralPartialEq 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 UnsafeUnpin 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