pub struct NewOptions {
pub dialect: Option<Dialect>,
pub schema: Option<String>,
pub json: bool,
pub from: Option<PathBuf>,
pub export_json: Option<PathBuf>,
pub schema_help: bool,
}Fields§
§dialect: Option<Dialect>Override dialect (sqlite, postgresql)
schema: Option<String>Override schema output path
json: boolRead schema definition from JSON (stdin by default)
from: Option<PathBuf>Read JSON from a file instead of stdin (requires –json)
export_json: Option<PathBuf>Export the schema definition as JSON after building
schema_help: boolPrint the expected JSON schema shape and exit
Trait Implementations§
Source§impl Args for NewOptions
impl Args for NewOptions
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 NewOptions
impl Debug for NewOptions
Source§impl FromArgMatches for NewOptions
impl FromArgMatches for NewOptions
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 NewOptions
impl RefUnwindSafe for NewOptions
impl Send for NewOptions
impl Sync for NewOptions
impl Unpin for NewOptions
impl UnsafeUnpin for NewOptions
impl UnwindSafe for NewOptions
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