Struct dialoguer::theme::ColorfulTheme [−][src]
A colorful theme
Fields
defaults_style: Style
The style for default values
prompt_style: Style
The style for prompt
prompt_prefix: StyledObject<String>
Prompt prefix value and style
prompt_suffix: StyledObject<String>
Prompt suffix value and style
success_prefix: StyledObject<String>
Prompt on success prefix value and style
success_suffix: StyledObject<String>
Prompt on success suffix value and style
error_prefix: StyledObject<String>
Error prefix value and style
error_style: Style
The style for error message
hint_style: Style
The style for hints
values_style: Style
The style for values on prompt success
active_item_style: Style
The style for active items
inactive_item_style: Style
The style for inactive items
active_item_prefix: StyledObject<String>
Active item in select prefix value and style
inactive_item_prefix: StyledObject<String>
Inctive item in select prefix value and style
checked_item_prefix: StyledObject<String>
Checked item in multi select prefix value and style
unchecked_item_prefix: StyledObject<String>
Unchecked item in multi select prefix value and style
picked_item_prefix: StyledObject<String>
Picked item in sort prefix value and style
unpicked_item_prefix: StyledObject<String>
Unpicked item in sort prefix value and style
Trait Implementations
impl Default for ColorfulTheme
[src]
fn default() -> ColorfulTheme
[src]
impl Theme for ColorfulTheme
[src]
fn format_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
Formats a prompt.
fn format_error(&self, f: &mut dyn Write, err: &str) -> Result
[src]
Formats an error
fn format_input_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>
) -> Result
Formats an input prompt.
fn format_confirm_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>
) -> Result
Formats a confirm prompt.
fn format_confirm_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selection: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selection: bool
) -> Result
Formats a confirm prompt after selection.
fn format_input_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
Formats an input prompt after selection.
fn format_password_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str
) -> Result
Formats a password prompt after selection.
fn format_multi_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
Formats a multi select prompt after selection.
fn format_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
active: bool
) -> Result
Formats a select prompt item.
fn format_multi_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool
) -> Result
Formats a multi select prompt item.
fn format_sort_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool
) -> Result
[src]
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool
) -> Result
Formats a sort prompt item.
fn format_password_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
fn format_select_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
fn format_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str
) -> Result
fn format_multi_select_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
fn format_sort_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result
[src]
fn format_sort_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
[src]
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str]
) -> Result
Auto Trait Implementations
impl RefUnwindSafe for ColorfulTheme
impl Send for ColorfulTheme
impl Sync for ColorfulTheme
impl Unpin for ColorfulTheme
impl UnwindSafe for ColorfulTheme
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,