Struct gmime::Object [−]
pub struct Object(_, _);
Methods
impl Object
[src]
impl Object
pub fn new<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
content_type: &ContentType
) -> Object
[src]
pub fn new<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
content_type: &ContentType
) -> Object
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
.
pub fn new_type<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
type_: &str,
subtype: &str
) -> Object
[src]
pub fn new_type<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
type_: &str,
subtype: &str
) -> Object
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
.
pub fn register_type(type_: &str, subtype: &str, object_type: Type)
[src]
pub fn register_type(type_: &str, subtype: &str, object_type: Type)
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
pub fn type_registry_init()
[src]
pub fn type_registry_init()
pub fn type_registry_shutdown()
[src]
pub fn type_registry_shutdown()
Trait Implementations
impl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for MessagePart
impl IsA<Object> for MessagePart
impl IsA<Object> for Multipart
impl IsA<Object> for Multipart
impl IsA<Object> for MultipartEncrypted
impl IsA<Object> for MultipartEncrypted
impl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSigned
impl Clone for Object
impl Clone for Object
fn clone(&self) -> Object
fn clone(&self) -> Object
Returns 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)
Performs copy-assignment from source
. Read more
impl Debug for Object
impl Debug for Object
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Object
impl Hash for Object
fn 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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for Object
impl StaticType for Object
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Object
impl<T: IsA<Object>> PartialEq<T> for Object
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Object
impl Eq for Object
impl IsA<Object> for Object
impl IsA<Object> for Object
impl IsA<Object> for Part
impl IsA<Object> for Part
impl IsA<Object> for TextPart
impl IsA<Object> for TextPart
impl IsA<Object> for Message
impl IsA<Object> for Message
impl IsA<Object> for MessagePartial
impl IsA<Object> for MessagePartial