Trait gmime::CertificateListExt [−][src]
pub trait CertificateListExt {
fn add(&self, cert: &Certificate) -> i32;
fn clear(&self);
fn contains(&self, cert: &Certificate) -> bool;
fn get_certificate(&self, index: i32) -> Option<Certificate>;
fn index_of(&self, cert: &Certificate) -> i32;
fn insert(&self, index: i32, cert: &Certificate);
fn length(&self) -> i32;
fn remove(&self, cert: &Certificate) -> bool;
fn remove_at(&self, index: i32) -> bool;
fn set_certificate(&self, index: i32, cert: &Certificate);
}Required Methods
fn add(&self, cert: &Certificate) -> i32
Adds a Certificate to the CertificateList.
cert
a Certificate
Returns
the index of the added Certificate.
fn clear(&self)
Clears the list of certificates.
fn contains(&self, cert: &Certificate) -> bool
Checks whether or not the specified Certificate is contained within
the CertificateList.
cert
a Certificate
Returns
true if the specified Certificate is contained within the
specified CertificateList or false otherwise.
fn get_certificate(&self, index: i32) -> Option<Certificate>
Gets the Certificate at the specified index.
index
index of Certificate to get
Returns
the Certificate at the specified
index or None if the index is out of range.
fn index_of(&self, cert: &Certificate) -> i32
Gets the index of the specified Certificate inside the
CertificateList.
cert
a Certificate
Returns
the index of the requested Certificate within the
CertificateList or %-1 if it is not contained within the
CertificateList.
fn insert(&self, index: i32, cert: &Certificate)
Inserts a Certificate into the CertificateList at the specified
index.
index
index to insert at
cert
a Certificate
fn length(&self) -> i32
fn remove(&self, cert: &Certificate) -> bool
Removes a Certificate from the CertificateList.
cert
a Certificate
Returns
true if the specified Certificate was removed or false
otherwise.
fn remove_at(&self, index: i32) -> bool
Removes a Certificate from the CertificateList at the specified
index.
index
index of the certificate to remove
Returns
true if a Certificate was removed or false otherwise.
fn set_certificate(&self, index: i32, cert: &Certificate)
Implementors
impl<O: IsA<CertificateList>> CertificateListExt for O