pub struct Display {
pub filters: HashMap<String, String>,
pub rules: HeaderRules,
pub reflow: bool,
pub alternative_order: Vec<String>,
pub html_to_text: bool,
}Expand description
Everything the pager needs to turn a message into text: mutt’s auto_view filters, the header weeding rules, $reflow_text and $alternative_order.
Fields§
§filters: HashMap<String, String>MIME type → shell command rendering the part (stdin → stdout), mutt’s auto_view. Types are lowercase.
rules: HeaderRules§reflow: boolmutt’s $reflow_text: put a format=flowed part back into
paragraphs rather than keeping the sender’s line breaks.
alternative_order: Vec<String>mutt’s $alternative_order: MIME types (text/* allowed), most
wanted first, consulted before anything else in a
multipart/alternative.
html_to_text: booltext/html through crate::html::to_text when no auto_view
filter claims it ([pager] html; “raw” restores mutt’s
literal source view). Not mutt’s; on by default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnsafeUnpin for Display
impl UnwindSafe for Display
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