pub struct Setting {
pub name: &'static str,
pub kind: &'static str,
pub default: DefaultValue,
pub levels: &'static [Level],
pub since: &'static str,
pub description: &'static str,
/* private fields */
}Expand description
One setting.
Fields§
§name: &'static strThe name in kebab-case, without the timelake. prefix.
kind: &'static strThe kind of value, as the docs show it (boolean, duration, …).
default: DefaultValueThe value when nothing sets it.
levels: &'static [Level]Where it can be set. Empty for properties Timelake manages itself.
since: &'static strThe Timelake version that added it.
description: &'static strWhat it does, for the docs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnsafeUnpin for Setting
impl UnwindSafe for Setting
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