Struct ssi_dids::did_resolve::ResolutionMetadata
source · pub struct ResolutionMetadata {
pub error: Option<String>,
pub content_type: Option<String>,
pub property_set: Option<HashMap<String, Metadata>>,
}
Expand description
Returned from DID Resolution (resolve
/ resolveRepresentation
).
Fields§
§error: Option<String>
error
metadata property. Values should be registered in DID Specification
Registries.
content_type: Option<String>
contentType
metadata property.
property_set: Option<HashMap<String, Metadata>>
Additional metadata properties.
Implementations§
source§impl ResolutionMetadata
impl ResolutionMetadata
Construct DID Resolution Metadata from an error value.
pub fn from_error(err: &str) -> Self
Trait Implementations§
source§impl Clone for ResolutionMetadata
impl Clone for ResolutionMetadata
source§fn clone(&self) -> ResolutionMetadata
fn clone(&self) -> ResolutionMetadata
Returns a copy 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 Debug for ResolutionMetadata
impl Debug for ResolutionMetadata
source§impl Default for ResolutionMetadata
impl Default for ResolutionMetadata
source§fn default() -> ResolutionMetadata
fn default() -> ResolutionMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResolutionMetadata
impl<'de> Deserialize<'de> for ResolutionMetadata
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<DereferencingMetadata> for ResolutionMetadata
impl From<DereferencingMetadata> for ResolutionMetadata
Convert DID URL Dereferencing metadata to DID Resolution Metadata.
Used when producing a DID resolution result after DID URL dereferencing.
source§fn from(deref_meta: DereferencingMetadata) -> Self
fn from(deref_meta: DereferencingMetadata) -> Self
Converts to this type from the input type.
source§impl From<ResolutionMetadata> for DereferencingMetadata
impl From<ResolutionMetadata> for DereferencingMetadata
Convert DID Resolution Metadata to DID URL Dereferencing metadata.
Used when returning a resolved DID document for DID URL dereferencing.
source§fn from(res_meta: ResolutionMetadata) -> Self
fn from(res_meta: ResolutionMetadata) -> Self
Converts to this type from the input type.