pub struct Setting {
pub key: &'static str,
pub kind: Kind,
pub default: DefaultValue,
pub doc: &'static str,
pub flag: Option<&'static str>,
pub kwarg: Option<&'static str>,
pub spec: Option<&'static str>,
}Expand description
One config key.
Fields§
§key: &'static strThe dotted key: section.name. A key ending .* stands for any name there.
kind: Kind§default: DefaultValue§doc: &'static strOne or two sentences: the generated config, the reference and the flag’s help.
flag: Option<&'static str>The flag that sets it for one run, without --.
kwarg: Option<&'static str>The keyword argument of Python’s datui.view() and DatuiOptions.
spec: Option<&'static str>The key a delimited format spec writes it as.
Implementations§
Trait Implementations§
impl Copy for Setting
impl Eq for Setting
impl StructuralPartialEq for Setting
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