pub enum UseMediaType {
Auto,
Default(MediaType),
}
Expand description
Re-export of all parts of the mail_core
crate.
Some parts like error
/default_impl
will get overridden.
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§
Source§impl Clone for UseMediaType
impl Clone for UseMediaType
Source§fn clone(&self) -> UseMediaType
fn clone(&self) -> UseMediaType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more