pub struct ConfigStore { /* private fields */ }Implementations§
Source§impl ConfigStore
impl ConfigStore
pub fn new() -> Result<Self>
pub fn get_base_url(&self) -> Result<String>
pub fn get_setting(&self, key: &str) -> Result<Option<String>>
pub fn set_setting(&mut self, key: &str, value: &str) -> Result<()>
pub fn set_base_url(&mut self, url: &str) -> Result<()>
pub fn list_settings(&self) -> Result<Vec<(String, String)>>
Trait Implementations§
Source§impl Default for ConfigStore
impl Default for ConfigStore
Source§fn default() -> ConfigStore
fn default() -> ConfigStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigStore
impl<'de> Deserialize<'de> for ConfigStore
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 ConfigStore
impl RefUnwindSafe for ConfigStore
impl Send for ConfigStore
impl Sync for ConfigStore
impl Unpin for ConfigStore
impl UnwindSafe for ConfigStore
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