Trait gmime::SignatureExt[][src]

pub trait SignatureExt {
    fn get_certificate(&self) -> Option<Certificate>;
fn get_created(&self) -> c_long;
fn get_expires(&self) -> c_long;
fn get_status(&self) -> SignatureStatus;
fn set_certificate(&self, cert: &Certificate);
fn set_created(&self, created: c_long);
fn set_expires(&self, expires: c_long);
fn set_status(&self, status: SignatureStatus); }

Trait containing all Signature methods.

Implementors

Signature

Required Methods

Get the signature's certificate.

Returns

the signature's certificate.

Get the creation date of the signature.

Returns

the creation date of the signature or %-1 if unknown.

Get the expiration date of the signature.

Returns

the expiration date of the signature or %-1 if unknown.

Get the signature status as a bitfield of SignatureStatus flags.

Returns

the signature status.

Set the signature's certificate.

cert

a Certificate

Set the creation date of the signature.

created

creation date

Set the expiration date of the signature.

expires

expiration date

Set the status on the signature.

status

a SignatureStatus

Implementors