pub struct TxArgs {
pub statements: Vec<String>,
pub stdin: bool,
pub file: Option<PathBuf>,
}Expand description
Grouping statements in one atomic block.
Fields§
§statements: Vec<String>A statement of the block; repeatable and run in order.
stdin: boolRead the statements from the standard input, one per line.
file: Option<PathBuf>Read the statements from a file, one per line.
The manual publishes the block this way and this build offered only the statement by statement form and the standard input. A caller with the block already in a file had to take it apart to pass it in.
Trait Implementations§
Source§impl Args for TxArgs
impl Args for TxArgs
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 FromArgMatches for TxArgs
impl FromArgMatches for TxArgs
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 TxArgs
impl RefUnwindSafe for TxArgs
impl Send for TxArgs
impl Sync for TxArgs
impl Unpin for TxArgs
impl UnsafeUnpin for TxArgs
impl UnwindSafe for TxArgs
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