pub struct AskView<T> {
pub text: String,
pub answers: Vec<AnswerView<T>>,
pub keys: Option<String>,
}Expand description
A question, as it is this frame.
Fields§
§text: StringThe question.
answers: Vec<AnswerView<T>>The answers, in order; none for a question answered by its keys
alone (keys).
keys: Option<String>The line naming the keys that answer (a yes/no’s “f yes / d no”), shown instead of the answers.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for AskView<T>
impl<T: PartialEq> StructuralPartialEq for AskView<T>
Auto Trait Implementations§
impl<T> Freeze for AskView<T>
impl<T> RefUnwindSafe for AskView<T>where
T: RefUnwindSafe,
impl<T> Send for AskView<T>where
T: Send,
impl<T> Sync for AskView<T>where
T: Sync,
impl<T> Unpin for AskView<T>where
T: Unpin,
impl<T> UnsafeUnpin for AskView<T>
impl<T> UnwindSafe for AskView<T>where
T: UnwindSafe,
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