pub struct ProofConfigurationRef<'a, S>where
S: CryptographicSuite,{
pub context: Option<&'a Context>,
pub type_: &'a S,
pub created: Option<&'a Lexical<DateTimeStamp>>,
pub verification_method: ReferenceOrOwnedRef<'a, <S as CryptographicSuite>::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 as CryptographicSuite>::ProofOptions,
pub extra_properties: &'a BTreeMap<String, Value>,
}Fields§
§context: Option<&'a Context>Proof context.
type_: &'a SProof type.
created: Option<&'a Lexical<DateTimeStamp>>§verification_method: ReferenceOrOwnedRef<'a, <S as CryptographicSuite>::VerificationMethod>§proof_purpose: ProofPurpose§expires: Option<&'a Lexical<DateTimeStamp>>§domains: &'a [String]§challenge: Option<&'a str>§nonce: Option<&'a str>§options: &'a <S as CryptographicSuite>::ProofOptions§extra_properties: &'a BTreeMap<String, Value>Extra properties.
Implementations§
Source§impl<'a, S> ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
impl<'a, S> ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
pub fn embed<'d>( self, document: &'d impl JsonLdNodeObject, ) -> EmbeddedProofConfigurationRef<'d, 'a, S>
pub async fn expand(
self,
environment: &impl JsonLdLoaderProvider,
document: &impl JsonLdNodeObject,
) -> Result<ExpandedProofConfiguration, ConfigurationExpansionError>where
S: SerializeCryptographicSuite,
Source§impl<'a, S> ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
impl<'a, S> ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
pub fn to_owned(&self) -> ProofConfiguration<S>where
S: CloneCryptographicSuite,
pub fn map<T>(
self,
map_type: impl FnOnce(&'a S) -> &'a T,
map_verification_method: impl FnOnce(&'a <S as CryptographicSuite>::VerificationMethod) -> &'a <T as CryptographicSuite>::VerificationMethod,
map_options: impl FnOnce(&'a <S as CryptographicSuite>::ProofOptions) -> &'a <T as CryptographicSuite>::ProofOptions,
) -> ProofConfigurationRef<'a, T>where
T: CryptographicSuite,
pub fn try_map<T, E>(
self,
map_type: impl FnOnce(&'a S) -> Result<&'a T, E>,
map_verification_method: impl FnOnce(&'a <S as CryptographicSuite>::VerificationMethod) -> Result<&'a <T as CryptographicSuite>::VerificationMethod, E>,
map_options: impl FnOnce(&'a <S as CryptographicSuite>::ProofOptions) -> Result<&'a <T as CryptographicSuite>::ProofOptions, E>,
) -> Result<ProofConfigurationRef<'a, T>, E>where
T: CryptographicSuite,
pub fn without_proof_options(self) -> ProofConfigurationRefWithoutOptions<'a, S>
Trait Implementations§
Source§impl<'a, S> Clone for ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
impl<'a, S> Clone for ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
Source§fn clone(&self) -> ProofConfigurationRef<'a, S>
fn clone(&self) -> ProofConfigurationRef<'a, S>
Returns a duplicate of the value. Read more
Source§fn clone_from(&mut self, _source: &ProofConfigurationRef<'a, S>)
fn clone_from(&mut self, _source: &ProofConfigurationRef<'a, S>)
Performs copy-assignment from
source. Read moreSource§impl<'a, S> Serialize for ProofConfigurationRef<'a, S>where
S: CryptographicSuite + SerializeCryptographicSuite,
impl<'a, S> Serialize for ProofConfigurationRef<'a, S>where
S: CryptographicSuite + SerializeCryptographicSuite,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a, S> Copy for ProofConfigurationRef<'a, S>where
S: CryptographicSuite,
Auto Trait Implementations§
impl<'a, S> Freeze for ProofConfigurationRef<'a, S>
impl<'a, S> RefUnwindSafe for ProofConfigurationRef<'a, S>where
S: RefUnwindSafe,
<S as CryptographicSuite>::ProofOptions: RefUnwindSafe,
<S as CryptographicSuite>::VerificationMethod: RefUnwindSafe,
impl<'a, S> Send for ProofConfigurationRef<'a, S>where
S: Sync,
<S as CryptographicSuite>::ProofOptions: Sync,
<S as CryptographicSuite>::VerificationMethod: Sync,
impl<'a, S> Sync for ProofConfigurationRef<'a, S>where
S: Sync,
<S as CryptographicSuite>::ProofOptions: Sync,
<S as CryptographicSuite>::VerificationMethod: Sync,
impl<'a, S> Unpin for ProofConfigurationRef<'a, S>
impl<'a, S> UnwindSafe for ProofConfigurationRef<'a, S>where
S: RefUnwindSafe,
<S as CryptographicSuite>::ProofOptions: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.