pub struct Decision {
pub id: String,
pub question: String,
pub choices: Vec<Choice>,
pub selected: Option<String>,
}Expand description
One question the operator owns.
Fields§
§id: StringA stable id that survives re-planning.
question: StringThe question, one line.
choices: Vec<Choice>The answers, each with its consequence.
selected: Option<String>The answer selected, where one is.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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