pub trait MimeHeaders<'x> {
// Required methods
fn content_description(&self) -> Option<&str>;
fn content_disposition(&self) -> Option<&ContentType<'_>>;
fn content_id(&self) -> Option<&str>;
fn content_transfer_encoding(&self) -> Option<&str>;
fn content_type(&self) -> Option<&ContentType<'_>>;
fn content_language(&self) -> &HeaderValue<'_>;
fn content_location(&self) -> Option<&str>;
// Provided methods
fn attachment_name(&self) -> Option<&str> { ... }
fn is_content_type(&self, type_: &str, subtype: &str) -> bool { ... }
}
Expand description
MIME Header field access trait
Required Methods§
Sourcefn content_description(&self) -> Option<&str>
fn content_description(&self) -> Option<&str>
Returns the Content-Description field
Sourcefn content_disposition(&self) -> Option<&ContentType<'_>>
fn content_disposition(&self) -> Option<&ContentType<'_>>
Returns the Content-Disposition field
Sourcefn content_id(&self) -> Option<&str>
fn content_id(&self) -> Option<&str>
Returns the Content-ID field
Sourcefn content_transfer_encoding(&self) -> Option<&str>
fn content_transfer_encoding(&self) -> Option<&str>
Returns the Content-Encoding field
Sourcefn content_type(&self) -> Option<&ContentType<'_>>
fn content_type(&self) -> Option<&ContentType<'_>>
Returns the Content-Type field
Sourcefn content_language(&self) -> &HeaderValue<'_>
fn content_language(&self) -> &HeaderValue<'_>
Returns the Content-Language field
Sourcefn content_location(&self) -> Option<&str>
fn content_location(&self) -> Option<&str>
Returns the Content-Location field
Provided Methods§
Sourcefn attachment_name(&self) -> Option<&str>
fn attachment_name(&self) -> Option<&str>
Returns the attachment name, if any.