Struct gmime::ContentType [−]
pub struct ContentType(_, _);
Methods
impl ContentType[src]
impl ContentTypepub fn new(type_: &str, subtype: &str) -> ContentType[src]
pub fn new(type_: &str, subtype: &str) -> ContentTypeCreates 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 ContentTypefn clone(&self) -> ContentType
fn clone(&self) -> ContentTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ContentType
impl Debug for ContentTypefn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for ContentType
impl Hash for ContentTypefn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl StaticType for ContentType
impl StaticType for ContentTypefn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for ContentType
impl<T: IsA<Object>> PartialEq<T> for ContentTypefn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for ContentType
impl Eq for ContentTypeimpl IsA<Object> for ContentType
impl IsA<Object> for ContentTypeAuto Trait Implementations
impl !Send for ContentType
impl !Send for ContentTypeimpl !Sync for ContentType
impl !Sync for ContentType