#[non_exhaustive]pub struct ResolutionOptions {
pub accept: Option<String>,
pub properties: IndexMap<String, Value>,
}Expand description
Options passed to a resolver (DID Core §7.1.1 “DID resolution options”).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accept: Option<String>The media type the caller wants the document in.
properties: IndexMap<String, Value>Every other option, in insertion order.
Implementations§
Trait Implementations§
Source§impl Clone for ResolutionOptions
impl Clone for ResolutionOptions
Source§impl Debug for ResolutionOptions
impl Debug for ResolutionOptions
Source§impl Default for ResolutionOptions
impl Default for ResolutionOptions
Source§impl<'de> Deserialize<'de> for ResolutionOptions
impl<'de> Deserialize<'de> for ResolutionOptions
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
impl Eq for ResolutionOptions
Source§impl PartialEq for ResolutionOptions
impl PartialEq for ResolutionOptions
Source§impl Serialize for ResolutionOptions
impl Serialize for ResolutionOptions
impl StructuralPartialEq for ResolutionOptions
Auto Trait Implementations§
impl Freeze for ResolutionOptions
impl RefUnwindSafe for ResolutionOptions
impl Send for ResolutionOptions
impl Sync for ResolutionOptions
impl Unpin for ResolutionOptions
impl UnsafeUnpin for ResolutionOptions
impl UnwindSafe for ResolutionOptions
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.