Struct gmime::Object [−]
pub struct Object(_, _);
Methods
impl Object[src]
impl Objectpub 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
) -> ObjectPerforms 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
) -> ObjectPerforms 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 ApplicationPkcs7Mimeimpl IsA<Object> for MessagePart
impl IsA<Object> for MessagePartimpl IsA<Object> for Multipart
impl IsA<Object> for Multipartimpl IsA<Object> for MultipartEncrypted
impl IsA<Object> for MultipartEncryptedimpl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSignedimpl Clone for Object
impl Clone for Objectfn clone(&self) -> Object
fn clone(&self) -> ObjectReturns 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 Objectfn 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 Object
impl Hash for Objectfn 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 Objectfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for Object
impl<T: IsA<Object>> PartialEq<T> for Objectfn 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) -> boolThis method tests for !=.
impl Eq for Object
impl Eq for Objectimpl IsA<Object> for Object
impl IsA<Object> for Objectimpl IsA<Object> for Part
impl IsA<Object> for Partimpl IsA<Object> for TextPart
impl IsA<Object> for TextPartimpl IsA<Object> for Message
impl IsA<Object> for Messageimpl IsA<Object> for MessagePartial
impl IsA<Object> for MessagePartial