pub struct PctfPolicy {
pub min_assurance_level: AssuranceLevel,
pub require_consent: bool,
pub require_audit: bool,
pub accepted_types: Vec<String>,
pub trusted_issuers: Vec<String>,
}Expand description
PCTF policy configuration.
Fields§
§min_assurance_level: AssuranceLevelMinimum assurance level required for credential acceptance.
require_consent: boolWhether consent records are required for presentations.
require_audit: boolWhether audit logging is mandatory.
accepted_types: Vec<String>Accepted credential types (empty = accept all).
trusted_issuers: Vec<String>Trusted issuer DIDs (empty = accept all).
Trait Implementations§
Source§impl Clone for PctfPolicy
impl Clone for PctfPolicy
Source§fn clone(&self) -> PctfPolicy
fn clone(&self) -> PctfPolicy
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 moreSource§impl Debug for PctfPolicy
impl Debug for PctfPolicy
Source§impl Default for PctfPolicy
impl Default for PctfPolicy
Source§impl<'de> Deserialize<'de> for PctfPolicy
impl<'de> Deserialize<'de> for PctfPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PctfPolicy
impl RefUnwindSafe for PctfPolicy
impl Send for PctfPolicy
impl Sync for PctfPolicy
impl Unpin for PctfPolicy
impl UnwindSafe for PctfPolicy
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