pub struct ReportQuestion {
pub text: String,
pub options: Vec<String>,
}Expand description
One structured human question inside a WorkerReport (ticket
structured-human-question-events). Deliberately id-less: the engine
mints the question id at emit time (q-<n>, per-mission monotonic from
the folded count), so a model-supplied id can never collide with or
shadow another question’s.
Fields§
§text: StringThe question text (size-capped + scrubbed at event write).
options: Vec<String>Structured choices the worker offered; EMPTY asks for free text. Capped per-option and per-list at event write.
Trait Implementations§
Source§impl Clone for ReportQuestion
impl Clone for ReportQuestion
Source§fn clone(&self) -> ReportQuestion
fn clone(&self) -> ReportQuestion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReportQuestion
impl Debug for ReportQuestion
Source§impl<'de> Deserialize<'de> for ReportQuestion
impl<'de> Deserialize<'de> for ReportQuestion
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 ReportQuestion
Source§impl PartialEq for ReportQuestion
impl PartialEq for ReportQuestion
Source§impl Serialize for ReportQuestion
impl Serialize for ReportQuestion
impl StructuralPartialEq for ReportQuestion
Auto Trait Implementations§
impl Freeze for ReportQuestion
impl RefUnwindSafe for ReportQuestion
impl Send for ReportQuestion
impl Sync for ReportQuestion
impl Unpin for ReportQuestion
impl UnsafeUnpin for ReportQuestion
impl UnwindSafe for ReportQuestion
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