pub struct ConnectionOverrides {
pub url: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub user: Option<String>,
pub password: Option<String>,
pub database: Option<String>,
pub ssl: Option<String>,
pub auth_token: Option<String>,
}Expand description
CLI overrides for database connection credentials.
Each field maps to a top-level --{name} flag. Embedded into commands
that talk to a live database via #[command(flatten)] so the connection
surface is defined once and reused across push, introspect/pull.
Fields§
§url: Option<String>Database connection URL
host: Option<String>Database host
port: Option<u16>Database port
user: Option<String>Database user
password: Option<String>Database password
database: Option<String>Database name
ssl: Option<String>SSL mode (true/false or require/prefer/verify-full/disable)
auth_token: Option<String>Turso auth token
Implementations§
Trait Implementations§
Source§impl Args for ConnectionOverrides
impl Args for ConnectionOverrides
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 ConnectionOverrides
impl Clone for ConnectionOverrides
Source§fn clone(&self) -> ConnectionOverrides
fn clone(&self) -> ConnectionOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionOverrides
impl Debug for ConnectionOverrides
Source§impl Default for ConnectionOverrides
impl Default for ConnectionOverrides
Source§fn default() -> ConnectionOverrides
fn default() -> ConnectionOverrides
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for ConnectionOverrides
impl FromArgMatches for ConnectionOverrides
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 ConnectionOverrides
impl RefUnwindSafe for ConnectionOverrides
impl Send for ConnectionOverrides
impl Sync for ConnectionOverrides
impl Unpin for ConnectionOverrides
impl UnsafeUnpin for ConnectionOverrides
impl UnwindSafe for ConnectionOverrides
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