#[non_exhaustive]pub struct FormatOptionKey {
pub key: &'static str,
pub kind: OptionKind,
pub help: &'static str,
}Expand description
One option a format understands in ExtractOptions::format_options: its full key ("csv.columns"), the kind
of value, and a line of help for tools that list the options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: &'static strThe full key, <family>.<name>.
kind: OptionKindThe kind of value.
help: &'static strOne line of help.
Implementations§
Source§impl FormatOptionKey
impl FormatOptionKey
Sourcepub const fn new(
key: &'static str,
kind: OptionKind,
help: &'static str,
) -> FormatOptionKey
pub const fn new( key: &'static str, kind: OptionKind, help: &'static str, ) -> FormatOptionKey
A key of this kind.
Sourcepub const fn bool(key: &'static str, help: &'static str) -> FormatOptionKey
pub const fn bool(key: &'static str, help: &'static str) -> FormatOptionKey
A boolean key.
Sourcepub const fn int(key: &'static str, help: &'static str) -> FormatOptionKey
pub const fn int(key: &'static str, help: &'static str) -> FormatOptionKey
An integer key.
Sourcepub const fn text(key: &'static str, help: &'static str) -> FormatOptionKey
pub const fn text(key: &'static str, help: &'static str) -> FormatOptionKey
A text key.
Trait Implementations§
Source§impl Clone for FormatOptionKey
impl Clone for FormatOptionKey
impl Copy for FormatOptionKey
Source§impl Debug for FormatOptionKey
impl Debug for FormatOptionKey
impl Eq for FormatOptionKey
Source§impl Hash for FormatOptionKey
impl Hash for FormatOptionKey
Source§impl PartialEq for FormatOptionKey
impl PartialEq for FormatOptionKey
impl StructuralPartialEq for FormatOptionKey
Auto Trait Implementations§
impl Forget for FormatOptionKey
impl Freeze for FormatOptionKey
impl RefUnwindSafe for FormatOptionKey
impl Send for FormatOptionKey
impl Sync for FormatOptionKey
impl Unpin for FormatOptionKey
impl UnsafeUnpin for FormatOptionKey
impl UnwindSafe for FormatOptionKey
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