pub struct Entry {
pub mimetype: String,
pub command: String,
pub copiousoutput: bool,
pub needsterminal: bool,
pub test: Option<String>,
pub nametemplate: Option<String>,
}Expand description
One mailcap line: the type it handles, the view command, and the flags rmut cares about.
Fields§
§mimetype: StringLowercased type/subtype, possibly type/*.
command: String§copiousoutput: boolThe command writes plain text to stdout: mutt’s requirement for auto_view, and ours.
needsterminal: boolThe command wants the terminal, so it cannot render into the pager.
test: Option<String>test=: a shell command that must succeed for the entry to
apply (this is how a mailcap gates on $DISPLAY).
nametemplate: Option<String>nametemplate=%s.html: the shape the viewer wants the temp
file’s name in - a browser sniffs an extensionless file as
text and shows source.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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