pub struct ActionDecision {
pub action_id: String,
pub subject: String,
pub action: String,
pub decision: Decision,
pub passkey_confirmed: bool,
}Expand description
A consent decision, reported to the venture’s on_action hook.
The two paths that produce one:
- a Telegram tap — Deny, or Approve of a non-value-moving action;
passkey_confirmedisfalse; - the web app’s confirm route finishing a value-moving action —
always
Decision::Approvewithpasskey_confirmedtrue, because a fresh passkey ceremony stood behind it.
Fields§
§action_id: StringThe id send_action_prompt reported, and the {action_id} of
the confirm route — stable across every path that names it.
subject: StringThe account the action belonged to.
action: StringThe app-defined label the request carried, verbatim.
decision: DecisionWhich way it was decided.
passkey_confirmed: boolWhether a fresh passkey ceremony stood behind the approval
(true only on the confirm route’s path).
Trait Implementations§
Source§impl Clone for ActionDecision
impl Clone for ActionDecision
Source§impl Debug for ActionDecision
impl Debug for ActionDecision
Source§impl<'de> Deserialize<'de> for ActionDecision
impl<'de> Deserialize<'de> for ActionDecision
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 ActionDecision
Source§impl PartialEq for ActionDecision
impl PartialEq for ActionDecision
Source§impl Serialize for ActionDecision
impl Serialize for ActionDecision
impl StructuralPartialEq for ActionDecision
Auto Trait Implementations§
impl Freeze for ActionDecision
impl RefUnwindSafe for ActionDecision
impl Send for ActionDecision
impl Sync for ActionDecision
impl Unpin for ActionDecision
impl UnsafeUnpin for ActionDecision
impl UnwindSafe for ActionDecision
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,
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
Compare self to
key and return true if they are equal.