pub struct OptionsView {
pub title: String,
pub rows: Vec<RowView>,
pub message: Option<String>,
pub question: Option<AskView<bool>>,
pub leaving: Option<AskView<LeaveChoice>>,
pub help: String,
}Expand description
The whole screen, as it is this frame.
Fields§
§title: StringThe screen’s title.
rows: Vec<RowView>The rows, top to bottom.
message: Option<String>A message for the player (something was done, or couldn’t be).
question: Option<AskView<bool>>The yes/no question open over the rows, if any (no answers, but the line naming its keys).
leaving: Option<AskView<LeaveChoice>>The question asked on leaving with changes, if it is open: keep them, throw them away or stay.
help: StringThe help line: what the keys do here.
Implementations§
Trait Implementations§
Source§impl Clone for OptionsView
impl Clone for OptionsView
Source§fn clone(&self) -> OptionsView
fn clone(&self) -> OptionsView
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 OptionsView
impl Debug for OptionsView
impl Eq for OptionsView
Source§impl PartialEq for OptionsView
impl PartialEq for OptionsView
impl StructuralPartialEq for OptionsView
Auto Trait Implementations§
impl Freeze for OptionsView
impl RefUnwindSafe for OptionsView
impl Send for OptionsView
impl Sync for OptionsView
impl Unpin for OptionsView
impl UnsafeUnpin for OptionsView
impl UnwindSafe for OptionsView
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