pub struct FileArgs {
pub path: Option<PathBuf>,
pub delimiter: Option<String>,
pub on_error: Option<OnError>,
}Expand description
Running a file of statements.
Fields§
§path: Option<PathBuf>File to run.
Optional to the argument layer and required to the command, for the
reason given on SampleArgs::table.
delimiter: Option<String>Statement separator; defaults to the stored key.
on_error: Option<OnError>What a failed statement does to the rest of the file.
Stopping is the default and always was, because a statement that failed may well be the one the rest depended on. Skipping is for the file whose statements are independent of one another, where one bad line should not cost the other nine hundred.
Trait Implementations§
Source§impl Args for FileArgs
impl Args for FileArgs
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 FileArgs
impl FromArgMatches for FileArgs
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 FileArgs
impl RefUnwindSafe for FileArgs
impl Send for FileArgs
impl Sync for FileArgs
impl Unpin for FileArgs
impl UnsafeUnpin for FileArgs
impl UnwindSafe for FileArgs
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