Struct gmime::ContentType[]

pub struct ContentType(_, _);

A data structure representing a Content-Type.

Implements

ContentTypeExt

Methods

impl ContentType
[src]

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.

Parses the input string into a ContentType object.

options

a ParserOptions or None

str

input string containing a content-type (and params)

Returns

a new ContentType object.

Trait Implementations

impl Clone for ContentType

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ContentType

Formats the value using the given formatter. Read more

impl Hash for ContentType

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl StaticType for ContentType

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for ContentType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ContentType

impl IsA<Object> for ContentType

Auto Trait Implementations

impl !Send for ContentType

impl !Sync for ContentType