pub struct DestinationFlags {
pub profile: Option<String>,
pub database: Option<String>,
pub dsn: Option<String>,
pub all_profiles: bool,
}Expand description
Which destination the invocation talks to.
Fields§
§profile: Option<String>Profile to use; defaults to the one marked as default.
database: Option<String>Database this operation targets; defaults to the profile’s database.
dsn: Option<String>Destination as a single text, instead of a profile.
The text travels in the command line, so everything in it — including a password — is readable by anything that can see this process, and stays readable in whatever recorded the call. A profile keeps the secret in a file only its owner can read and puts a name here instead, which is the same designation with none of the exposure.
all_profiles: boolRun against every stored profile.
Implementations§
Source§impl DestinationFlags
impl DestinationFlags
Sourcepub const fn source(&self) -> TargetSource
pub const fn source(&self) -> TargetSource
Where the destination of this invocation was decided.
Read from the call alone, so it is known before any store is opened and before any connection is attempted. That is what lets a change be refused for an unwritten target without paying a round trip for the refusal.
Trait Implementations§
Source§impl Args for DestinationFlags
impl Args for DestinationFlags
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for DestinationFlags
impl Clone for DestinationFlags
Source§impl Debug for DestinationFlags
impl Debug for DestinationFlags
Source§impl FromArgMatches for DestinationFlags
impl FromArgMatches for DestinationFlags
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>
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>
ArgMatches to self.