pub struct HyphaConfig {
pub defaults: Defaults,
pub cache: CacheConfig,
}Fields§
§defaults: Defaults§cache: CacheConfigImplementations§
Source§impl HyphaConfig
impl HyphaConfig
pub fn load() -> Result<Self, HyphaError>
pub fn save(&self) -> Result<(), HyphaError>
Trait Implementations§
Source§impl Debug for HyphaConfig
impl Debug for HyphaConfig
Source§impl Default for HyphaConfig
impl Default for HyphaConfig
Source§fn default() -> HyphaConfig
fn default() -> HyphaConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HyphaConfigwhere
HyphaConfig: Default,
impl<'de> Deserialize<'de> for HyphaConfigwhere
HyphaConfig: Default,
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 HyphaConfig
impl RefUnwindSafe for HyphaConfig
impl Send for HyphaConfig
impl Sync for HyphaConfig
impl Unpin for HyphaConfig
impl UnsafeUnpin for HyphaConfig
impl UnwindSafe for HyphaConfig
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