pub struct CertificateStore {
pub certificates: Vec<Certificate>,
pub storage_path: PathBuf,
}Fields§
§certificates: Vec<Certificate>§storage_path: PathBufImplementations§
Source§impl CertificateStore
impl CertificateStore
pub fn new(storage_path: PathBuf) -> Self
pub async fn load(&mut self) -> Result<(), Box<dyn Error>>
pub async fn save(&self) -> Result<(), Box<dyn Error>>
pub fn add_certificate(&mut self, certificate: Certificate)
pub fn get_certificate(&self, domain: &str) -> Option<&Certificate>
pub fn has_certificate(&self, domain: &str) -> bool
pub fn get_certificates_needing_renewal( &self, days_before_expiry: i64, ) -> Vec<&Certificate>
pub fn get_expired_certificates(&self) -> Vec<&Certificate>
pub fn update_renewal_check(&mut self, domain: &str)
pub fn remove_certificate(&mut self, domain: &str) -> bool
pub fn list_certificates(&self) -> &[Certificate]
Sourcepub fn get_all_domains(&self) -> Vec<String>
pub fn get_all_domains(&self) -> Vec<String>
Get all domains managed by this certificate store
Trait Implementations§
Source§impl Clone for CertificateStore
impl Clone for CertificateStore
Source§fn clone(&self) -> CertificateStore
fn clone(&self) -> CertificateStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CertificateStore
impl Debug for CertificateStore
Source§impl<'de> Deserialize<'de> for CertificateStore
impl<'de> Deserialize<'de> for CertificateStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CertificateStore
impl RefUnwindSafe for CertificateStore
impl Send for CertificateStore
impl Sync for CertificateStore
impl Unpin for CertificateStore
impl UnwindSafe for CertificateStore
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more