Struct gmime::ApplicationPkcs7Mime [−]
pub struct ApplicationPkcs7Mime(_, _);
Methods
impl ApplicationPkcs7Mime[src]
impl ApplicationPkcs7Mimepub fn new(type_: SecureMimeType) -> ApplicationPkcs7Mime[src]
pub fn new(type_: SecureMimeType) -> ApplicationPkcs7MimeCreates a new application/pkcs7-mime object.
type_
The type of S/MIME data contained within the part.
Returns
an empty application/pkcs7-mime object.
pub fn sign<P: IsA<Object>>(
entity: &P,
userid: &str
) -> Result<Option<ApplicationPkcs7Mime>, Error>[src]
pub fn sign<P: IsA<Object>>(
entity: &P,
userid: &str
) -> Result<Option<ApplicationPkcs7Mime>, Error>Attempts to sign the entity MIME part with userid's private key using
S/MIME. If successful, a new application/pkcs7-mime object is returned.
entity
a Object
userid
the user id to sign with
Returns
a new ApplicationPkcs7Mime object on success
or None on fail. If signing fails, an exception will be set on err to provide
information as to why the failure occurred.
Trait Implementations
impl Clone for ApplicationPkcs7Mime
impl Clone for ApplicationPkcs7Mimefn clone(&self) -> ApplicationPkcs7Mime
fn clone(&self) -> ApplicationPkcs7MimeReturns 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 ApplicationPkcs7Mime
impl Debug for ApplicationPkcs7Mimefn 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 ApplicationPkcs7Mime
impl Hash for ApplicationPkcs7Mimefn 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 ApplicationPkcs7Mime
impl StaticType for ApplicationPkcs7Mimefn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for ApplicationPkcs7Mime
impl<T: IsA<Object>> PartialEq<T> for ApplicationPkcs7Mimefn 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 ApplicationPkcs7Mime
impl Eq for ApplicationPkcs7Mimeimpl IsA<Part> for ApplicationPkcs7Mime
impl IsA<Part> for ApplicationPkcs7Mimeimpl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7Mimeimpl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7MimeAuto Trait Implementations
impl !Send for ApplicationPkcs7Mime
impl !Send for ApplicationPkcs7Mimeimpl !Sync for ApplicationPkcs7Mime
impl !Sync for ApplicationPkcs7Mime