pub struct SampleArgs {
pub table: Option<String>,
pub rows: Option<usize>,
}Expand description
Sampling a table.
Fields§
§table: Option<String>Table to sample.
Optional to the argument layer and required to the command. Publishing the contract must cost nothing, and a caller asking what this command answers should not have to name a table first. Absence is refused where the sampling is actually run, and carries a code.
rows: Option<usize>How many rows to return.
Trait Implementations§
Source§impl Args for SampleArgs
impl Args for SampleArgs
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 SampleArgs
impl Clone for SampleArgs
Source§impl Debug for SampleArgs
impl Debug for SampleArgs
Source§impl FromArgMatches for SampleArgs
impl FromArgMatches for SampleArgs
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 SampleArgs
impl RefUnwindSafe for SampleArgs
impl Send for SampleArgs
impl Sync for SampleArgs
impl Unpin for SampleArgs
impl UnsafeUnpin for SampleArgs
impl UnwindSafe for SampleArgs
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