pub struct GlobalConfig {
pub raz: RazConfig,
pub providers_config: Option<ProviderConfig>,
pub filters: Option<FilterConfig>,
pub ui: Option<UiConfig>,
pub commands: Option<Vec<CommandConfig>>,
pub overrides: Option<OverrideSettings>,
pub saved_overrides: Option<OverrideCollection>,
}
Fields§
§raz: RazConfig
§providers_config: Option<ProviderConfig>
§filters: Option<FilterConfig>
§ui: Option<UiConfig>
§commands: Option<Vec<CommandConfig>>
§overrides: Option<OverrideSettings>
§saved_overrides: Option<OverrideCollection>
Implementations§
Source§impl GlobalConfig
impl GlobalConfig
pub fn new() -> GlobalConfig
pub fn load() -> Result<GlobalConfig, ConfigError>
pub fn save(&self) -> Result<(), ConfigError>
pub fn config_path() -> Result<PathBuf, ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
pub fn merge_with(&mut self, other: GlobalConfig)
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobalConfig
impl Debug for GlobalConfig
Source§impl Default for GlobalConfig
impl Default for GlobalConfig
Source§fn default() -> GlobalConfig
fn default() -> GlobalConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GlobalConfig
impl Serialize for GlobalConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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