pub struct ImportOptions {
pub path: PathBuf,
pub out: Option<PathBuf>,
pub force: bool,
pub dialect: Option<Dialect>,
pub casing: Option<IntrospectCasing>,
pub schema_name: String,
pub upgrade: bool,
pub init_config: bool,
}Fields§
§path: PathBufdrizzle-kit migrations folder (either layout) or a snapshot.json file
out: Option<PathBuf>File to write the schema to, or - for stdout [default: the config’s
schema, else src/schema.rs]
force: boolOverwrite the output file if it exists
dialect: Option<Dialect>Dialect of the snapshot (default: its dialect field)
casing: Option<IntrospectCasing>Casing for Rust field names (camel or preserve) [default: the config’s
introspect.casing when set, else snake_case]
schema_name: StringName of the generated schema struct
upgrade: boolConvert a journal-layout folder to the folder layout in place, as
drizzle up does
init_config: boolWrite a starter drizzle.config.toml for the imported project when none exists
Trait Implementations§
Source§impl Args for ImportOptions
impl Args for ImportOptions
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 ImportOptions
impl Clone for ImportOptions
Source§impl Debug for ImportOptions
impl Debug for ImportOptions
Source§impl FromArgMatches for ImportOptions
impl FromArgMatches for ImportOptions
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 ImportOptions
impl RefUnwindSafe for ImportOptions
impl Send for ImportOptions
impl Sync for ImportOptions
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptions
impl UnwindSafe for ImportOptions
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