pub struct Config {
pub acme_staging: bool,
pub notifications: Vec<NotifyWith>,
pub accounts: Vec<CloudFlareAccount>,
}Fields§
§acme_staging: bool§notifications: Vec<NotifyWith>§accounts: Vec<CloudFlareAccount>Implementations§
Source§impl Config
impl Config
pub async fn config_file() -> String
pub async fn config_dir() -> String
pub async fn config_data_dir() -> Result<String>
pub async fn load() -> Result<Config, SpannedError>
pub async fn from(config_file: &str) -> Result<Config, SpannedError>
pub async fn domains(&self) -> Vec<String>
pub async fn contacts_of(&self, domain: &str) -> Vec<String>
pub async fn api_token_of(&self, domain: &str) -> String
pub async fn zone_id_of(&self, domain: &str) -> String
pub async fn notifications(&self) -> Vec<NotifyWith>
pub async fn acme_staging(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
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