pub struct ContentDescription;
Expand description
A description of the content of the body (rfc2045)
This is mainly usefull for multipart body parts, e.g. to add an description to a inlined/attached image.
Trait Implementations§
Source§impl Clone for ContentDescription
impl Clone for ContentDescription
Source§fn clone(&self) -> ContentDescription
fn clone(&self) -> ContentDescription
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 Default for ContentDescription
impl Default for ContentDescription
Source§fn default() -> ContentDescription
fn default() -> ContentDescription
Returns the “default value” for a type. Read more
Source§impl HeaderKind for ContentDescription
impl HeaderKind for ContentDescription
Source§const MAX_ONE: bool = true
const MAX_ONE: bool = true
I true this will assure that the header is at most one time in a header map. Read more
Source§const VALIDATOR: Option<fn(&HeaderMap) -> Result<(), HeaderValidationError>> = { None }
const VALIDATOR: Option<fn(&HeaderMap) -> Result<(), HeaderValidationError>> = { None }
A function which is meant to be called with a reference
to the final header map before encoding the headers. It is
meant to be used do some of the contextual validations,
like e.g. a
From
header might return a function which
checks if the From
header has multiple mailboxes and
if so checks if there is a Sender
header Read moreSource§type Component = Unstructured
type Component = Unstructured
the component representing the header-field, e.g.
Unstructured
for Subject
Source§fn name() -> HeaderName
fn name() -> HeaderName
a method returning the header name Read more
Source§fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError>where
H: HeaderTryInto<Self::Component>,
fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError>where
H: HeaderTryInto<Self::Component>,
Creates a
Header
instance automatically converting given body to the right type. Read moreimpl Copy for ContentDescription
impl MaxOneMarker for ContentDescription
Auto Trait Implementations§
impl Freeze for ContentDescription
impl RefUnwindSafe for ContentDescription
impl Send for ContentDescription
impl Sync for ContentDescription
impl Unpin for ContentDescription
impl UnwindSafe for ContentDescription
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