pub struct SelectionStyle {
pub label_style: LabelStyle,
pub submitted_formatting: Formatting,
pub option_formatting: Formatting,
pub selected_option_formatting: Formatting,
pub filter_formatting: Formatting,
pub not_selected_marker: Marker,
pub selected_marker: Marker,
}Expand description
Style for the Selection prompt
Fields§
§label_style: LabelStyleStyle for the prompt itself
submitted_formatting: FormattingFormatting for the user’s input when the prompt is completed
option_formatting: FormattingFormatting for the options
selected_option_formatting: FormattingFormatting for the option that is currently highlighted
filter_formatting: FormattingFormatting for the filter string
not_selected_marker: MarkerMarker for the option which is not highlighted
selected_marker: MarkerMarker for the option which is currently highlighted
Implementations§
Source§impl SelectionStyle
impl SelectionStyle
pub fn label_style(self, l: LabelStyle) -> Self
pub fn submitted_formatting(self, f: Formatting) -> Self
pub fn option_formatting(self, f: Formatting) -> Self
pub fn not_selected_marker(self, m: Marker) -> Self
pub fn selected_marker(self, m: Marker) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SelectionStyle
impl RefUnwindSafe for SelectionStyle
impl Send for SelectionStyle
impl Sync for SelectionStyle
impl Unpin for SelectionStyle
impl UnwindSafe for SelectionStyle
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