pub struct InitArgs {Show 13 fields
pub dev_url: Option<String>,
pub no_import: bool,
pub defaults: bool,
pub schema_dir: String,
pub migrations_dir: Option<String>,
pub baselines_dir: Option<String>,
pub auto_shadow: bool,
pub shadow_pg_version: Option<String>,
pub create_baseline: bool,
pub no_baseline: bool,
pub baseline_description: Option<String>,
pub roles_file: Option<String>,
pub fresh: bool,
}Expand description
CLI arguments for the init command
Fields§
§dev_url: Option<String>Database URL for development
no_import: boolSkip import (create empty project)
defaults: boolUse defaults for all prompts (non-interactive mode)
schema_dir: StringSchema directory name
migrations_dir: Option<String>Migrations directory name
baselines_dir: Option<String>Baselines directory name
auto_shadow: boolUse auto shadow database (skip shadow database prompt)
shadow_pg_version: Option<String>PostgreSQL version for auto shadow database (e.g., “14”, “15”, “16”)
create_baseline: boolCreate baseline from existing database (non-interactive)
no_baseline: boolSkip baseline creation (non-interactive)
baseline_description: Option<String>Custom description for baseline
roles_file: Option<String>Path to roles file (default: auto-detect roles.sql)
fresh: boolForce fresh initialization (overwrite existing config)
Trait Implementations§
Source§impl Args for InitArgs
impl Args for InitArgs
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 CommandFactory for InitArgs
impl CommandFactory for InitArgs
Source§impl FromArgMatches for InitArgs
impl FromArgMatches for InitArgs
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.Source§impl Parser for InitArgs
impl Parser for InitArgs
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)
Auto Trait Implementations§
impl Freeze for InitArgs
impl RefUnwindSafe for InitArgs
impl Send for InitArgs
impl Sync for InitArgs
impl Unpin for InitArgs
impl UnsafeUnpin for InitArgs
impl UnwindSafe for InitArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more