pub struct TextPayload {
pub text: Option<String>,
pub text_file: Option<PathBuf>,
pub comment: Option<String>,
}Expand description
Exact text input; file bytes must be UTF-8 and are never trimmed.
Fields§
§text: Option<String>Exact plain text (not Markdown); empty text is meaningful.
text_file: Option<PathBuf>Exact UTF-8 file; all trailing newlines are preserved.
comment: Option<String>Attach a comment to the nonempty resulting text.
Trait Implementations§
Source§impl Args for TextPayload
impl Args for TextPayload
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 Debug for TextPayload
impl Debug for TextPayload
Source§impl FromArgMatches for TextPayload
impl FromArgMatches for TextPayload
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 Forget for TextPayload
impl Freeze for TextPayload
impl Move for TextPayload
impl RefUnwindSafe for TextPayload
impl Send for TextPayload
impl Sync for TextPayload
impl Unpin for TextPayload
impl UnsafeUnpin for TextPayload
impl UnwindSafe for TextPayload
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