pub enum MechanismSelection {
NamedByDid,
Pinned(DiscoveryMechanism),
}Expand description
How resolve picks the single mechanism it will use.
Variants§
NamedByDid
Use whatever the DID names (DiscoveryMechanism::named_by). The
default for a verifier with no configuration for this notary.
Pinned(DiscoveryMechanism)
Use exactly this mechanism and no other — §8.4.6’s per-notary pin.
A pin is a narrowing, never a widening: pinning a mechanism the DID cannot support fails rather than quietly resolving by another route, so an operator learns their configuration is wrong instead of getting a key from somewhere they did not choose.
Trait Implementations§
Source§impl Clone for MechanismSelection
impl Clone for MechanismSelection
impl Copy for MechanismSelection
Source§impl Debug for MechanismSelection
impl Debug for MechanismSelection
impl Eq for MechanismSelection
Source§impl PartialEq for MechanismSelection
impl PartialEq for MechanismSelection
impl StructuralPartialEq for MechanismSelection
Auto Trait Implementations§
impl Freeze for MechanismSelection
impl RefUnwindSafe for MechanismSelection
impl Send for MechanismSelection
impl Sync for MechanismSelection
impl Unpin for MechanismSelection
impl UnsafeUnpin for MechanismSelection
impl UnwindSafe for MechanismSelection
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