pub struct NightConfig {
pub night_mode: bool,
pub night_hours: String,
pub night_model: String,
}Fields§
§night_mode: bool§night_hours: StringFormat: “HH:MM-HH:MM” (e.g. “23:00-07:00”)
night_model: StringTrait Implementations§
Source§impl Clone for NightConfig
impl Clone for NightConfig
Source§fn clone(&self) -> NightConfig
fn clone(&self) -> NightConfig
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 NightConfig
impl Debug for NightConfig
Source§impl Default for NightConfig
impl Default for NightConfig
Source§impl<'de> Deserialize<'de> for NightConfigwhere
NightConfig: Default,
impl<'de> Deserialize<'de> for NightConfigwhere
NightConfig: 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 NightConfig
impl RefUnwindSafe for NightConfig
impl Send for NightConfig
impl Sync for NightConfig
impl Unpin for NightConfig
impl UnsafeUnpin for NightConfig
impl UnwindSafe for NightConfig
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