Enum mail_core::UseMediaType
source · pub enum UseMediaType {
Auto,
Default(MediaType),
}
Expand description
Specifies how the content type should be handled when loading the data.
Depending on how the context implementation handles the loading it might already have a content type, but if not it might also need to “sniff” it, which can fail. Nevertheless how any of the aspects are handled in detail depends on the context implementation.
Variants
Auto
Sniff content type if no content type was given from any other place.
Default(MediaType)
Use this content type if no content type was given from any other place.
As resources are loaded by IRI they could be loaded from any place and this place could be storing the data with the right content type, in which case that content type should be used.
Trait Implementations
sourceimpl Clone for UseMediaType
impl Clone for UseMediaType
sourcefn clone(&self) -> UseMediaType
fn clone(&self) -> UseMediaType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UseMediaType
impl Debug for UseMediaType
Auto Trait Implementations
impl RefUnwindSafe for UseMediaType
impl Send for UseMediaType
impl Sync for UseMediaType
impl Unpin for UseMediaType
impl UnwindSafe for UseMediaType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more