pub struct FieldDoc {
pub parameter: String,
pub command_line_long: String,
pub command_line_short: String,
pub environment_variable: Option<String>,
pub description: String,
pub default_value: Option<String>,
pub example: Option<String>,
pub is_mandatory: bool,
}
Expand description
Information to document a field
Fields§
§parameter: String
Name of the parameter
command_line_long: String
Long option for the command line
command_line_short: String
Short option for the command line
environment_variable: Option<String>
Environment variable
description: String
Description of the parameter
default_value: Option<String>
Default value
example: Option<String>
Usage example
is_mandatory: bool
Is a mandatory parameter
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldDoc
impl RefUnwindSafe for FieldDoc
impl Send for FieldDoc
impl Sync for FieldDoc
impl Unpin for FieldDoc
impl UnwindSafe for FieldDoc
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)