pub enum ElicitKind {
Approval,
Confirm,
StepUp,
Attestation,
Info,
Review,
}Expand description
The kind of elicitation — selects which validation contract the
runtime applies to the human’s response. A single AST node
([Step::Elicit]) covers every kind; the DSL exposes each via a
sugar verb (require_approval → Approval, confirm → Confirm,
…) that all parse to the same node. See
docs/apl-elicitation-hook-design.md for the per-kind contracts.
Variants§
Approval
Yes/no decision from a designated approver (manager approval).
The approver MAY differ from the request subject; the response is
bound to the request’s args via scope.
Confirm
Cheap yes/no from the originating user (“yes, really do this”).
StepUp
Re-auth / second factor by the originating user (fresh token,
elevated acr).
Attestation
Signed statement from a designated party (“I confirm I reviewed X”).
Info
Free-form clarification from the originating user.
Review
Peer review of an action by a colleague.
Implementations§
Trait Implementations§
Source§impl Clone for ElicitKind
impl Clone for ElicitKind
Source§fn clone(&self) -> ElicitKind
fn clone(&self) -> ElicitKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ElicitKind
Source§impl Debug for ElicitKind
impl Debug for ElicitKind
Source§impl<'de> Deserialize<'de> for ElicitKind
impl<'de> Deserialize<'de> for ElicitKind
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>,
impl Eq for ElicitKind
Source§impl PartialEq for ElicitKind
impl PartialEq for ElicitKind
Source§impl Serialize for ElicitKind
impl Serialize for ElicitKind
impl StructuralPartialEq for ElicitKind
Auto Trait Implementations§
impl Freeze for ElicitKind
impl RefUnwindSafe for ElicitKind
impl Send for ElicitKind
impl Sync for ElicitKind
impl Unpin for ElicitKind
impl UnsafeUnpin for ElicitKind
impl UnwindSafe for ElicitKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.