pub struct ProofRef<'a, S: CryptographicSuite> {
pub context: Option<&'a Context>,
pub type_: &'a S,
pub created: Option<&'a Lexical<DateTimeStamp>>,
pub verification_method: ReferenceOrOwnedRef<'a, S::VerificationMethod>,
pub proof_purpose: ProofPurpose,
pub expires: Option<&'a Lexical<DateTimeStamp>>,
pub domains: &'a [String],
pub challenge: Option<&'a str>,
pub nonce: Option<&'a str>,
pub options: &'a S::ProofOptions,
pub signature: &'a S::Signature,
pub extra_properties: &'a BTreeMap<String, Value>,
}Fields§
§context: Option<&'a Context>§type_: &'a S§created: Option<&'a Lexical<DateTimeStamp>>§verification_method: ReferenceOrOwnedRef<'a, S::VerificationMethod>§proof_purpose: ProofPurpose§expires: Option<&'a Lexical<DateTimeStamp>>§domains: &'a [String]§challenge: Option<&'a str>§nonce: Option<&'a str>§options: &'a S::ProofOptions§signature: &'a S::Signature§extra_properties: &'a BTreeMap<String, Value>Implementations§
Source§impl<'a, S: CryptographicSuite> ProofRef<'a, S>
impl<'a, S: CryptographicSuite> ProofRef<'a, S>
pub fn configuration(&self) -> ProofConfigurationRef<'a, S>
pub fn map<T: CryptographicSuite>( self, map_type: impl FnOnce(&'a S) -> &'a T, map_verification_method: impl FnOnce(&'a S::VerificationMethod) -> &'a T::VerificationMethod, map_options: impl FnOnce(&'a S::ProofOptions) -> &'a T::ProofOptions, map_signature: impl FnOnce(&'a S::Signature) -> &'a T::Signature, ) -> ProofRef<'a, T>
Auto Trait Implementations§
impl<'a, S> Freeze for ProofRef<'a, S>
impl<'a, S> RefUnwindSafe for ProofRef<'a, S>where
S: RefUnwindSafe,
<S as CryptographicSuite>::ProofOptions: RefUnwindSafe,
<S as CryptographicSuite>::Signature: RefUnwindSafe,
<S as CryptographicSuite>::VerificationMethod: RefUnwindSafe,
impl<'a, S> Send for ProofRef<'a, S>where
S: Sync,
<S as CryptographicSuite>::ProofOptions: Sync,
<S as CryptographicSuite>::Signature: Sync,
<S as CryptographicSuite>::VerificationMethod: Sync,
impl<'a, S> Sync for ProofRef<'a, S>where
S: Sync,
<S as CryptographicSuite>::ProofOptions: Sync,
<S as CryptographicSuite>::Signature: Sync,
<S as CryptographicSuite>::VerificationMethod: Sync,
impl<'a, S> Unpin for ProofRef<'a, S>
impl<'a, S> UnwindSafe for ProofRef<'a, S>where
S: RefUnwindSafe,
<S as CryptographicSuite>::ProofOptions: RefUnwindSafe,
<S as CryptographicSuite>::Signature: RefUnwindSafe,
<S as CryptographicSuite>::VerificationMethod: RefUnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.