pub struct AuthoredMessageArgs {
pub body: Option<String>,
pub file: Option<PathBuf>,
}Expand description
Inline --body / -m or --file authored text.
One body-input convention across discuss/context writes. --body and
--file conflict.
Fields§
§body: Option<String>Inline body text.
file: Option<PathBuf>Read the body from a file.
Implementations§
Trait Implementations§
Source§impl Args for AuthoredMessageArgs
impl Args for AuthoredMessageArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for AuthoredMessageArgs
impl Clone for AuthoredMessageArgs
Source§impl Debug for AuthoredMessageArgs
impl Debug for AuthoredMessageArgs
Source§impl Default for AuthoredMessageArgs
impl Default for AuthoredMessageArgs
Source§impl FromArgMatches for AuthoredMessageArgs
impl FromArgMatches for AuthoredMessageArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AuthoredMessageArgs
impl RefUnwindSafe for AuthoredMessageArgs
impl Send for AuthoredMessageArgs
impl Sync for AuthoredMessageArgs
impl Unpin for AuthoredMessageArgs
impl UnsafeUnpin for AuthoredMessageArgs
impl UnwindSafe for AuthoredMessageArgs
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