pub struct MigrateArgs {
pub check: bool,
pub apply: bool,
pub list: bool,
pub force: bool,
pub command: Option<MigrateCommand>,
}Fields§
§check: boolCheck for pending migrations without applying them (exit 1 if any pending).
apply: boolApply pending migrations.
list: boolList all migrations and their status.
force: boolForce apply migrations even if already applied (dangerous).
command: Option<MigrateCommand>Subcommand for more detailed operations.
Trait Implementations§
Source§impl Args for MigrateArgs
impl Args for MigrateArgs
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 MigrateArgs
impl FromArgMatches for MigrateArgs
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 MigrateArgs
impl RefUnwindSafe for MigrateArgs
impl Send for MigrateArgs
impl Sync for MigrateArgs
impl Unpin for MigrateArgs
impl UnsafeUnpin for MigrateArgs
impl UnwindSafe for MigrateArgs
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