pub struct Options {
pub accept: Option<ContentType>,
pub additional: Option<HashMap<String, Metadata>>,
}Expand description
Used to pass addtional values to a resolve and dereference methods. Any
properties used should be registered in the DID Specification Registries.
The accept property is common to all resolver implementations. It is used
by users to specify the Media Type when calling the resolve_representation
method. For example:
{
"accept": "application/did+ld+json"
}Fields§
§accept: Option<ContentType>accept resolution option.
additional: Option<HashMap<String, Metadata>>Additional options.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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