pub struct Config {
pub email: Option<String>,
pub base_url: Option<String>,
pub identity_url: Option<String>,
pub notifications_url: Option<String>,
pub lock_timeout: u64,
pub sync_interval: u64,
pub pinentry: String,
pub client_cert_path: Option<PathBuf>,
pub device_id: Option<String>,
}
Fields§
§email: Option<String>
§base_url: Option<String>
§identity_url: Option<String>
§notifications_url: Option<String>
§lock_timeout: u64
§sync_interval: u64
§pinentry: String
§client_cert_path: Option<PathBuf>
§device_id: Option<String>
Implementations§
source§impl Config
impl Config
pub fn new() -> Self
pub fn load() -> Result<Self>
pub async fn load_async() -> Result<Self>
pub fn save(&self) -> Result<()>
pub fn validate() -> Result<()>
pub fn base_url(&self) -> String
pub fn identity_url(&self) -> String
pub fn notifications_url(&self) -> String
pub fn client_cert_path(&self) -> Option<&Path>
pub fn server_name(&self) -> String
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