pub enum MigrateCommands {
ApplyAll {
dryrun: bool,
connect_opts: ConnectOpts,
},
ListApplied {
connect_opts: ConnectOpts,
},
New {
description: String,
no_tx: bool,
migration_type: MigrationType,
source: Source,
},
}Variants§
ApplyAll
Run any available unapplied migrations.
Fields
§
connect_opts: ConnectOptsListApplied
List previously applied migrations.
Fields
§
connect_opts: ConnectOptsNew
Create a new migration with an auto-selected version and the given description.
Trait Implementations§
Source§impl CommandFactory for MigrateCommands
impl CommandFactory for MigrateCommands
Source§impl Debug for MigrateCommands
impl Debug for MigrateCommands
Source§impl FromArgMatches for MigrateCommands
impl FromArgMatches for MigrateCommands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for MigrateCommands
impl Parser for MigrateCommands
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl Subcommand for MigrateCommands
impl Subcommand for MigrateCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MigrateCommands
impl RefUnwindSafe for MigrateCommands
impl Send for MigrateCommands
impl Sync for MigrateCommands
impl Unpin for MigrateCommands
impl UnwindSafe for MigrateCommands
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