[][src]Struct meli::conf::listing::ListingSettings

pub struct ListingSettings {
    pub context_lines: usize,
    pub show_menu_scrollbar: bool,
    pub datetime_fmt: Option<String>,
    pub recent_dates: bool,
    pub filter: Option<Query>,
    pub index_style: IndexStyle,
    pub sidebar_mailbox_tree_has_sibling: Option<String>,
    pub sidebar_mailbox_tree_no_sibling: Option<String>,
    pub sidebar_mailbox_tree_has_sibling_leaf: Option<String>,
    pub sidebar_mailbox_tree_no_sibling_leaf: Option<String>,
    pub sidebar_divider: char,
    pub unseen_flag: Option<String>,
    pub thread_snoozed_flag: Option<String>,
    pub selected_flag: Option<String>,
    pub attachment_flag: Option<String>,
}

Settings for mail listings

Tree decoration examples:

const HAS_SIBLING: &'static str = " ┃";
const NO_SIBLING: &'static str = "  ";
const HAS_SIBLING_LEAF: &'static str = " ┣━";
const NO_SIBLING_LEAF: &'static str = " ┗━";

const HAS_SIBLING: &'static str = " |";
const NO_SIBLING: &'static str = "  ";
const HAS_SIBLING_LEAF: &'static str = " |\\_";
const NO_SIBLING_LEAF: &'static str = " \\_";

const HAS_SIBLING: &'static str = " ";
const NO_SIBLING: &'static str = " ";
const HAS_SIBLING_LEAF: &'static str = " ";
const NO_SIBLING_LEAF: &'static str = " ";

const HAS_SIBLING: &'static str = " │";
const NO_SIBLING: &'static str = "  ";
const HAS_SIBLING_LEAF: &'static str = " ├─";
const NO_SIBLING_LEAF: &'static str = " ╰─";

Fields

context_lines: usize

Number of context lines when going to next page. Default: 0

show_menu_scrollbar: bool

Show auto-hiding scrollbar in accounts sidebar menu. Default: True

datetime_fmt: Option<String>

Datetime formatting passed verbatim to strftime(3). Default: %Y-%m-%d %T

recent_dates: bool

Show recent dates as X {minutes,hours,days} ago, up to 7 days. Default: true

filter: Option<Query>

Show only envelopes that match this query Default: None

index_style: IndexStylesidebar_mailbox_tree_has_sibling: Option<String>

Default: " "

sidebar_mailbox_tree_no_sibling: Option<String>

Default: " "

sidebar_mailbox_tree_has_sibling_leaf: Option<String>

Default: " "

sidebar_mailbox_tree_no_sibling_leaf: Option<String>

Default: " "

sidebar_divider: char

Default: ' '

unseen_flag: Option<String>

Flag to show if thread entry contains unseen mail. Default: "●"

thread_snoozed_flag: Option<String>

Flag to show if thread has been snoozed. Default: "💤"

selected_flag: Option<String>

Flag to show if thread entry has been selected. Default: "☑️"

attachment_flag: Option<String>

Flag to show if thread entry contains attachments. Default: "📎"

Trait Implementations

impl Clone for ListingSettings[src]

impl Debug for ListingSettings[src]

impl Default for ListingSettings[src]

impl<'de> Deserialize<'de> for ListingSettings[src]

impl DotAddressable for ListingSettings[src]

impl Serialize for ListingSettings[src]

Auto Trait Implementations

impl RefUnwindSafe for ListingSettings

impl Send for ListingSettings

impl Sync for ListingSettings

impl Unpin for ListingSettings

impl UnwindSafe for ListingSettings

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]