Struct gmime::ContentType [−]
Methods
impl ContentType
[src]
[−]
impl ContentType
pub fn new(type_: &str, subtype: &str) -> ContentType
[src]
[−]
pub fn new(type_: &str, subtype: &str) -> ContentType
Creates a Content-Type object with type type_
and subtype subtype
.
type_
the MIME type or None
for the default value
subtype
the MIME subtype or None
for the default value
Returns
a new ContentType
object.
pub fn parse<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
str: &str
) -> Option<ContentType>
[src]
[−]
pub fn parse<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
str: &str
) -> Option<ContentType>
Trait Implementations
impl Clone for ContentType
[+]
impl Clone for ContentType
impl Debug for ContentType
[+]
impl Debug for ContentType
impl Hash for ContentType
[+]
impl Hash for ContentType
impl StaticType for ContentType
[+]
impl StaticType for ContentType
impl<T: IsA<Object>> PartialEq<T> for ContentType
[+]
impl<T: IsA<Object>> PartialEq<T> for ContentType
impl Eq for ContentType
impl Eq for ContentType
impl IsA<Object> for ContentType
impl IsA<Object> for ContentType
Auto Trait Implementations
impl !Send for ContentType
impl !Send for ContentType
impl !Sync for ContentType
impl !Sync for ContentType