pub struct SurveyGate {
pub session_id: String,
pub reply_tx: UnboundedSender<String>,
pub phase: SurveyPhase,
pub prompt_role: String,
pub prompt_content: String,
}Expand description
A parked conversation awaiting a chat reply: which session the reply must come from, the channel to send it on, and which phase is waiting. Generic — the research survey/plan-approval gates ride it, and any other mode (swarm, watch setup, plain chat) can arm it the same way. Armed by the owning job’s update handler on each pending section, cleared when the user replies or the job ends.
Fields§
§session_id: String§reply_tx: UnboundedSender<String>§phase: SurveyPhase§prompt_role: StringThe actionable transcript row for this gate. Keeping it with the gate lets an incognito prompt be restored after the user switches away and back without writing private content to the database.
prompt_content: StringAuto Trait Implementations§
impl Freeze for SurveyGate
impl RefUnwindSafe for SurveyGate
impl Send for SurveyGate
impl Sync for SurveyGate
impl Unpin for SurveyGate
impl UnsafeUnpin for SurveyGate
impl UnwindSafe for SurveyGate
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.