pub struct OptionField {
pub name: &'static str,
pub kind: OptionKind,
pub default: OptionValue,
pub help: &'static str,
}Expand description
Schema entry describing one recognised option. Codec crates declare
a &'static [OptionField] listing every key their options struct
consumes.
Fields§
§name: &'static str§kind: OptionKind§default: OptionValue§help: &'static strTrait Implementations§
Auto Trait Implementations§
impl Freeze for OptionField
impl RefUnwindSafe for OptionField
impl Send for OptionField
impl Sync for OptionField
impl Unpin for OptionField
impl UnsafeUnpin for OptionField
impl UnwindSafe for OptionField
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