Enum mml::body::interpreter::FilterParts
source · pub enum FilterParts {
All,
Only(String),
Include(Vec<String>),
Exclude(Vec<String>),
}
Expand description
Filters parts to show by MIME type.
Variants§
All
Shows all parts. This filter enables MML markup since multiple parts with different MIME types can be mixed together, which can be hard to navigate through.
Only(String)
Shows only parts matching the given MIME type. This filter disables MML markup since only one MIME type is shown.
Include(Vec<String>)
Shows only parts matching the given list of MIME types. This filter enables MML markup since multiple parts with different MIME types can be mixed together, which can be hard to navigate through.
Exclude(Vec<String>)
Shows all parts except those matching the given list of MIME types. This filter enables MML markup since multiple parts with different MIME types can be mixed together, which can be hard to navigate through.
Implementations§
Trait Implementations§
source§impl Clone for FilterParts
impl Clone for FilterParts
source§fn clone(&self) -> FilterParts
fn clone(&self) -> FilterParts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FilterParts
impl Debug for FilterParts
source§impl Default for FilterParts
impl Default for FilterParts
source§fn default() -> FilterParts
fn default() -> FilterParts
Returns the “default value” for a type. Read more
source§impl PartialEq<FilterParts> for FilterParts
impl PartialEq<FilterParts> for FilterParts
source§fn eq(&self, other: &FilterParts) -> bool
fn eq(&self, other: &FilterParts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FilterParts
impl StructuralEq for FilterParts
impl StructuralPartialEq for FilterParts
Auto Trait Implementations§
impl RefUnwindSafe for FilterParts
impl Send for FilterParts
impl Sync for FilterParts
impl Unpin for FilterParts
impl UnwindSafe for FilterParts
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.