pub struct ServiceEntry {
pub id: String,
pub service_type: String,
pub service_endpoint: String,
pub extra: Option<Value>,
}Expand description
A service entry published in a Tier-3 DID document.
The minimal JSS contract only requires id, type, and
serviceEndpoint; callers may attach implementation-specific fields
via extra.
Fields§
§id: StringService id — typically <did>#<name>.
service_type: StringService type, e.g. SolidWebID, NostrRelay.
service_endpoint: StringEndpoint URL or URN.
extra: Option<Value>Optional vendor-specific properties; merged into the rendered service entry at publication time.
Trait Implementations§
Source§impl Clone for ServiceEntry
impl Clone for ServiceEntry
Source§fn clone(&self) -> ServiceEntry
fn clone(&self) -> ServiceEntry
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 ServiceEntry
impl Debug for ServiceEntry
Source§impl<'de> Deserialize<'de> for ServiceEntry
impl<'de> Deserialize<'de> for ServiceEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ServiceEntry
impl Serialize for ServiceEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceEntry
impl RefUnwindSafe for ServiceEntry
impl Send for ServiceEntry
impl Sync for ServiceEntry
impl Unpin for ServiceEntry
impl UnsafeUnpin for ServiceEntry
impl UnwindSafe for ServiceEntry
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