Struct ChannelGatePrompt
pub struct ChannelGatePrompt {
pub title: String,
pub description: String,
pub reference: String,
pub choices: Vec<GateChoice>,
pub resolved_description: Option<String>,
}Expand description
A long-lived, channel-agnostic gate prompt (e.g. a parked SOP approval):
rendered natively per channel (Discord embed + buttons, Telegram inline
keyboard, …), answered through the channel’s normal inbound path — a
component click or a <choice> <reference> text reply — NOT a blocking wait.
Fields§
§title: StringShort heading, e.g. “SOP approval needed: gitea-triage-pipeline”.
description: StringBody: what is waiting and how to answer (includes the text-reply form for humans on channels that render it as plain text).
reference: StringCorrelation key the answer must carry (e.g. the SOP run id). Encoded in component custom_ids and expected in text replies.
choices: Vec<GateChoice>The presented choices, in order.
resolved_description: Option<String>Body a RESOLVED prompt should keep showing (the context, without the
how-to-answer instructions): on finalize the channel appends the outcome
line under it, so the record of WHAT was approved survives in place.
None = the outcome replaces the body entirely.
Trait Implementations§
Source§impl Clone for ChannelGatePrompt
impl Clone for ChannelGatePrompt
Source§fn clone(&self) -> ChannelGatePrompt
fn clone(&self) -> ChannelGatePrompt
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more