pub struct GenerateOptions {
pub name: Option<String>,
pub custom: bool,
pub casing: Option<Casing>,
pub dialect: Option<Dialect>,
pub driver: Option<Driver>,
pub schema: Option<Vec<String>>,
pub out: Option<PathBuf>,
pub breakpoints: Option<bool>,
pub ignore_conflicts: bool,
pub fix_conflicts: bool,
pub hints: HintArgs,
}Fields§
§name: Option<String>Migration name (optional, auto-generated if not provided)
custom: boolCreate a custom (empty) migration file for manual SQL
casing: Option<Casing>Casing for generated identifiers (camelCase or snake_case)
dialect: Option<Dialect>Override dialect from config
driver: Option<Driver>Override driver from config
schema: Option<Vec<String>>Override schema path(s)
out: Option<PathBuf>Override output directory
breakpoints: Option<bool>Override breakpoints setting
ignore_conflicts: boolWhen merged migration branches change the same objects, diff against the newest snapshot instead of failing
fix_conflicts: boolWhen merged migration branches change the same objects, delete the migrations that conflict (on both branches, with every migration after them), then generate one migration in their place. Use it only when no shared database ran them
hints: HintArgsTrait Implementations§
Source§impl Args for GenerateOptions
impl Args for GenerateOptions
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 GenerateOptions
impl Clone for GenerateOptions
Source§impl Debug for GenerateOptions
impl Debug for GenerateOptions
Source§impl FromArgMatches for GenerateOptions
impl FromArgMatches for GenerateOptions
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 GenerateOptions
impl RefUnwindSafe for GenerateOptions
impl Send for GenerateOptions
impl Sync for GenerateOptions
impl Unpin for GenerateOptions
impl UnsafeUnpin for GenerateOptions
impl UnwindSafe for GenerateOptions
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