pub struct MktConfig {
pub defaults: Defaults,
pub profiles: HashMap<String, Profile>,
}Expand description
Top-level configuration loaded from config.toml.
Fields§
§defaults: DefaultsGlobal defaults.
profiles: HashMap<String, Profile>Named profiles.
Implementations§
Source§impl MktConfig
impl MktConfig
Sourcepub fn load_from_file(path: &Path) -> Result<Self>
pub fn load_from_file(path: &Path) -> Result<Self>
Load configuration from a TOML file.
§Errors
Returns an error if the file cannot be read or contains invalid TOML.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MktConfig
impl<'de> Deserialize<'de> for MktConfig
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 MktConfig
impl RefUnwindSafe for MktConfig
impl Send for MktConfig
impl Sync for MktConfig
impl Unpin for MktConfig
impl UnsafeUnpin for MktConfig
impl UnwindSafe for MktConfig
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