use identity_did::DIDUrl;
use identity_verification::MethodScope;
#[non_exhaustive]
#[derive(Default, Debug, serde::Serialize, serde::Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct JwsVerificationOptions {
pub nonce: Option<String>,
pub method_scope: Option<MethodScope>,
pub method_id: Option<DIDUrl>,
}
impl JwsVerificationOptions {
pub fn new() -> Self {
Self::default()
}
pub fn nonce(mut self, value: impl Into<String>) -> Self {
self.nonce = Some(value.into());
self
}
pub fn method_scope(mut self, value: MethodScope) -> Self {
self.method_scope = Some(value);
self
}
pub fn method_id(mut self, value: DIDUrl) -> Self {
self.method_id = Some(value);
self
}
}