pub enum ServiceEndpoint {
Uri(Uri),
Set(IndexSet<Uri>),
Map(IndexMap<String, Value>),
}Expand description
The serviceEndpoint of a service (DID Core §5.4): a URI, a set of URIs, or a map.
Variants§
Uri(Uri)
A single URI.
Set(IndexSet<Uri>)
A non-empty set of URIs, in document order.
Map(IndexMap<String, Value>)
A map, carried verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceEndpoint
impl Clone for ServiceEndpoint
Source§impl Debug for ServiceEndpoint
impl Debug for ServiceEndpoint
Source§impl<'de> Deserialize<'de> for ServiceEndpoint
impl<'de> Deserialize<'de> for ServiceEndpoint
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
impl Eq for ServiceEndpoint
Source§impl From<Uri> for ServiceEndpoint
impl From<Uri> for ServiceEndpoint
Source§impl PartialEq for ServiceEndpoint
impl PartialEq for ServiceEndpoint
Source§impl Serialize for ServiceEndpoint
impl Serialize for ServiceEndpoint
impl StructuralPartialEq for ServiceEndpoint
Auto Trait Implementations§
impl Freeze for ServiceEndpoint
impl RefUnwindSafe for ServiceEndpoint
impl Send for ServiceEndpoint
impl Sync for ServiceEndpoint
impl Unpin for ServiceEndpoint
impl UnsafeUnpin for ServiceEndpoint
impl UnwindSafe for ServiceEndpoint
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.