Struct gmime::Object[]

pub struct Object(_, _);

Base class for all MIME parts.

Implements

ObjectExt

Methods

impl Object
[src]

Performs a lookup of registered Object subclasses, registered using Object::register_type, to find an appropriate class capable of handling MIME parts of the specified Content-Type. If no class has been registered to handle that type, it looks for a registered class that can handle content_type's media type. If that also fails, then it will use the generic part class, Part.

options

a ParserOptions or None

content_type

a ContentType object

Returns

an appropriate Object registered to handle MIME parts appropriate for content_type.

Performs a lookup of registered Object subclasses, registered using Object::register_type, to find an appropriate class capable of handling MIME parts of type type_/subtype. If no class has been registered to handle that type, it looks for a registered class that can handle type_. If that also fails, then it will use the generic part class, Part.

options

a ParserOptions or None

type_

mime type

subtype

mime subtype

Returns

an appropriate Object registered to handle mime-types of type_/subtype.

Registers the object type object_type for use with the Object::new_type convenience function.

Note: You may use the wildcard "*" to match any type and/or subtype.

type_

mime type

subtype

mime subtype

object_type

object type

Trait Implementations

impl IsA<Object> for ApplicationPkcs7Mime

impl IsA<Object> for MessagePart

impl IsA<Object> for Multipart

impl IsA<Object> for MultipartEncrypted

impl IsA<Object> for MultipartSigned

impl Clone for Object

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Object

Formats the value using the given formatter. Read more

impl Hash for Object

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

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

impl StaticType for Object

Returns the type identifier of Self.

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

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

This method tests for !=.

impl Eq for Object

impl IsA<Object> for Object

impl IsA<Object> for Part

impl IsA<Object> for TextPart

impl IsA<Object> for Message

impl IsA<Object> for MessagePartial

Auto Trait Implementations

impl !Send for Object

impl !Sync for Object