#[non_exhaustive]pub struct KeylessPolicy {
pub attesters: Vec<String>,
pub trust_lists: Option<KeylessTrust>,
}Expand description
Which registries a consumer accepts as keyless attesters (§11).
A registry is accepted when its DID is in Self::attesters, or when
Self::trust_lists is set and the keyless-signed body evaluates
trusted (RFC-ACDP-0020 §6.2) with the attesting registry as its
receipting registry. The default accepts none, so every keyless-signed
body is refused with untrusted_attester (kl-006 A).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attesters: Vec<String>Attesting registries’ did:web DIDs, compared byte for byte.
trust_lists: Option<KeylessTrust>RFC-ACDP-0020 trust-list acceptance.
Implementations§
Source§impl KeylessPolicy
impl KeylessPolicy
Sourcepub fn attesters<I, S>(attesters: I) -> Self
pub fn attesters<I, S>(attesters: I) -> Self
Accept the registries attesters (their did:web DIDs).
Sourcepub fn with_trust_lists(self, trust: KeylessTrust) -> Self
pub fn with_trust_lists(self, trust: KeylessTrust) -> Self
Also accept a registry for a body the trust lists trust trust.
Trait Implementations§
Source§impl Clone for KeylessPolicy
impl Clone for KeylessPolicy
Source§impl Debug for KeylessPolicy
impl Debug for KeylessPolicy
Source§impl Default for KeylessPolicy
impl Default for KeylessPolicy
impl Eq for KeylessPolicy
Source§impl PartialEq for KeylessPolicy
impl PartialEq for KeylessPolicy
impl StructuralPartialEq for KeylessPolicy
Auto Trait Implementations§
impl Freeze for KeylessPolicy
impl RefUnwindSafe for KeylessPolicy
impl Send for KeylessPolicy
impl Sync for KeylessPolicy
impl Unpin for KeylessPolicy
impl UnsafeUnpin for KeylessPolicy
impl UnwindSafe for KeylessPolicy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.