Struct proton_call::Config
source · pub struct Config { /* private fields */ }
Expand description
Config type for parsing config files
Implementations§
source§impl Config
impl Config
sourcepub fn open() -> Result<Config, Error>
pub fn open() -> Result<Config, Error>
Opens and returns the user’s config
Errors
This function will fail if…
- Can not read
XDG_CONFIG_HOME
orHOME
from the environment - Can not open config file
- Can not parse config into
Config
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