pub struct ActionRequest {
pub subject: String,
pub action: String,
pub text: String,
pub value_moving: bool,
pub ttl: Duration,
}Expand description
One consent request, as the venture files it.
Fields§
§subject: StringThe account the action belongs to — the prompt goes to whatever Telegram account this subject has linked.
action: StringThe app-defined label of what is being approved. Reported back
verbatim in the crate::ActionDecision the venture’s on_action hook
receives; this module never interprets it.
text: StringWhat the person sees in the chat, above the buttons.
value_moving: boolWhether approving moves value (money, access, anything hard to
take back). A value-moving prompt can only be approved for
passkey confirmation from Telegram: the tap puts it into
awaiting_passkey and the web app’s /confirm route — a fresh
passkey ceremony, via the StepUp port — finishes it.
ttl: DurationHow long the buttons work. Capped at MAX_ACTION_TTL, floored
at one second.
Trait Implementations§
Source§impl Clone for ActionRequest
impl Clone for ActionRequest
Source§impl Debug for ActionRequest
impl Debug for ActionRequest
impl Eq for ActionRequest
Source§impl PartialEq for ActionRequest
impl PartialEq for ActionRequest
impl StructuralPartialEq for ActionRequest
Auto Trait Implementations§
impl Freeze for ActionRequest
impl RefUnwindSafe for ActionRequest
impl Send for ActionRequest
impl Sync for ActionRequest
impl Unpin for ActionRequest
impl UnsafeUnpin for ActionRequest
impl UnwindSafe for ActionRequest
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.