pub enum Requires {
Reauth,
Consent,
}Expand description
What a gated task requires before it may run.
Variants§
Reauth
The caller re-authenticates: an AAL2 elevation of its own session, proven with a second factor it already holds.
This is the whole of what step-up is now. The former delegated /
delegated-any modes — a different party ratifying, which then
elevated the caller’s session for a 15-minute window — are gone: that is
consent with weaker binding, and Requires::Consent does it properly.
Consent
Named approvers sign off on this exact payload (digest-bound, N-of-M, optionally excluding the requester), and the decision is re-asserted against the world at execution time.
Trait Implementations§
impl Copy for Requires
Source§impl<'de> Deserialize<'de> for Requires
impl<'de> Deserialize<'de> for Requires
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
impl Eq for Requires
impl StructuralPartialEq for Requires
Auto Trait Implementations§
impl Freeze for Requires
impl RefUnwindSafe for Requires
impl Send for Requires
impl Sync for Requires
impl Unpin for Requires
impl UnsafeUnpin for Requires
impl UnwindSafe for Requires
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