Struct identity_did::verifiable::VerifierOptions
source · pub struct VerifierOptions {
pub method_scope: Option<MethodScope>,
pub method_type: Option<Vec<MethodType>>,
pub challenge: Option<String>,
pub domain: Option<String>,
pub purpose: Option<ProofPurpose>,
pub allow_expired: Option<bool>,
}
Expand description
Holds additional options for verifying a proof with
CoreDocument::verify_data
.
Fields§
§method_scope: Option<MethodScope>
[`DocumentVerifier::method_scope’].
method_type: Option<Vec<MethodType>>
[`DocumentVerifier::method_type’].
challenge: Option<String>
[`DocumentVerifier::challenge’].
domain: Option<String>
[`DocumentVerifier::domain’].
purpose: Option<ProofPurpose>
[`DocumentVerifier::purpose’].
allow_expired: Option<bool>
[`DocumentVerifier::allow_expired’].
Implementations§
source§impl VerifierOptions
impl VerifierOptions
sourcepub fn method_scope(self, method_scope: MethodScope) -> Self
pub fn method_scope(self, method_scope: MethodScope) -> Self
See [`DocumentVerifier::method_scope’].
sourcepub fn method_type(self, method_type: Vec<MethodType>) -> Self
pub fn method_type(self, method_type: Vec<MethodType>) -> Self
See [`DocumentVerifier::method_type’].
sourcepub fn purpose(self, purpose: ProofPurpose) -> Self
pub fn purpose(self, purpose: ProofPurpose) -> Self
See [`DocumentVerifier::purpose’].
sourcepub fn allow_expired(self, allow_expired: bool) -> Self
pub fn allow_expired(self, allow_expired: bool) -> Self
See [`DocumentVerifier::allow_expired’].
Trait Implementations§
source§impl Clone for VerifierOptions
impl Clone for VerifierOptions
source§fn clone(&self) -> VerifierOptions
fn clone(&self) -> VerifierOptions
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 VerifierOptions
impl Debug for VerifierOptions
source§impl Default for VerifierOptions
impl Default for VerifierOptions
source§fn default() -> VerifierOptions
fn default() -> VerifierOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VerifierOptions
impl<'de> Deserialize<'de> for VerifierOptions
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 RefUnwindSafe for VerifierOptions
impl Send for VerifierOptions
impl Sync for VerifierOptions
impl Unpin for VerifierOptions
impl UnwindSafe for VerifierOptions
Blanket Implementations§
source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere T: for<'de> Deserialize<'de>,
source§fn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
fn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
Deserialize
Self
from a string of JSON text.source§fn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
fn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
Deserialize
Self
from bytes of JSON text.source§fn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize
Self
from a serde_json::Value
.source§impl<T> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere T: Serialize,
source§fn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize
self
as a serde_json::Value
.