[][src]Struct meli::conf::terminal::TerminalSettings

pub struct TerminalSettings {
    pub theme: String,
    pub themes: Themes,
    pub ascii_drawing: bool,
    pub use_color: ToggleFlag,
    pub use_mouse: ToggleFlag,
    pub mouse_flag: Option<String>,
    pub window_title: Option<String>,
    pub file_picker_command: Option<String>,
    pub progress_spinner_sequence: Option<ProgressSpinnerSequence>,
}

Settings for terminal display

Fields

theme: String

light, dark

themes: Themesascii_drawing: booluse_color: ToggleFlaguse_mouse: ToggleFlag

Use mouse events. This will disable text selection, but you will be able to resize some widgets. Default: False

mouse_flag: Option<String>

String to show in status bar if mouse is active. Default: "🖱️ "

window_title: Option<String>file_picker_command: Option<String>progress_spinner_sequence: Option<ProgressSpinnerSequence>

Choose between 30-something built in sequences (integers between 0-30) or define your own list of strings for the progress spinner animation. Default: 0

Implementations

impl TerminalSettings[src]

pub fn use_color(&self) -> bool[src]

Trait Implementations

impl Clone for TerminalSettings[src]

impl Debug for TerminalSettings[src]

impl Default for TerminalSettings[src]

impl<'de> Deserialize<'de> for TerminalSettings where
    TerminalSettings: Default
[src]

impl DotAddressable for TerminalSettings[src]

impl Serialize for TerminalSettings[src]

Auto Trait Implementations

impl !RefUnwindSafe for TerminalSettings

impl Send for TerminalSettings

impl Sync for TerminalSettings

impl Unpin for TerminalSettings

impl !UnwindSafe for TerminalSettings

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]