identity_document/verifiable/
jwp_verification_options.rs1use identity_did::DIDUrl;
5use identity_verification::MethodScope;
6
7#[non_exhaustive]
9#[derive(Default, Debug, serde::Serialize, serde::Deserialize, Clone)]
10#[serde(rename_all = "camelCase")]
11pub struct JwpVerificationOptions {
12 pub method_scope: Option<MethodScope>,
14 pub method_id: Option<DIDUrl>,
17}
18
19impl JwpVerificationOptions {
20 pub fn new() -> Self {
22 Self::default()
23 }
24
25 pub fn method_scope(mut self, value: MethodScope) -> Self {
27 self.method_scope = Some(value);
28 self
29 }
30
31 pub fn method_id(mut self, value: DIDUrl) -> Self {
33 self.method_id = Some(value);
34 self
35 }
36}