pub struct PresentationContext {
pub assurance_level: AssuranceLevel,
pub credential_types: Vec<String>,
pub issuer: String,
pub verifier: String,
pub purpose: String,
pub data_elements: Vec<String>,
pub now: String,
}Expand description
Context for evaluating a credential presentation against PCTF policy.
Fields§
§assurance_level: AssuranceLevelAssurance level of the credential.
credential_types: Vec<String>Credential type(s).
issuer: StringIssuer DID.
verifier: StringVerifier DID (recipient).
purpose: StringPurpose of presentation.
data_elements: Vec<String>Data elements being shared.
now: StringCurrent timestamp (RFC 3339).
Trait Implementations§
Source§impl Clone for PresentationContext
impl Clone for PresentationContext
Source§fn clone(&self) -> PresentationContext
fn clone(&self) -> PresentationContext
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PresentationContext
impl RefUnwindSafe for PresentationContext
impl Send for PresentationContext
impl Sync for PresentationContext
impl Unpin for PresentationContext
impl UnwindSafe for PresentationContext
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