Struct cliparser::types::CliSpecMetaInfo
source · [−]pub struct CliSpecMetaInfo {
pub author: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub project: Option<String>,
pub help_post_text: Option<String>,
}
Expand description
Holds the command line spec meta information used to generate version and help messages
Fields
Author name
version: Option<String>
Version string
description: Option<String>
Description string
project: Option<String>
Project name
help_post_text: Option<String>
Post help text
Implementations
sourceimpl CliSpecMetaInfo
impl CliSpecMetaInfo
sourcepub fn new() -> CliSpecMetaInfo
pub fn new() -> CliSpecMetaInfo
Returns new instance
Trait Implementations
sourceimpl Clone for CliSpecMetaInfo
impl Clone for CliSpecMetaInfo
sourcefn clone(&self) -> CliSpecMetaInfo
fn clone(&self) -> CliSpecMetaInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CliSpecMetaInfo
impl Debug for CliSpecMetaInfo
sourceimpl Default for CliSpecMetaInfo
impl Default for CliSpecMetaInfo
sourcefn default() -> CliSpecMetaInfo
fn default() -> CliSpecMetaInfo
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CliSpecMetaInfo> for CliSpecMetaInfo
impl PartialEq<CliSpecMetaInfo> for CliSpecMetaInfo
sourcefn eq(&self, other: &CliSpecMetaInfo) -> bool
fn eq(&self, other: &CliSpecMetaInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CliSpecMetaInfo) -> bool
fn ne(&self, other: &CliSpecMetaInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for CliSpecMetaInfo
Auto Trait Implementations
impl RefUnwindSafe for CliSpecMetaInfo
impl Send for CliSpecMetaInfo
impl Sync for CliSpecMetaInfo
impl Unpin for CliSpecMetaInfo
impl UnwindSafe for CliSpecMetaInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more