Struct bonsaidb::cli::Args [−][src]
pub struct Args<Cli: CommandLine> {
pub url: Option<Url>,
pub pinned_certificate: Option<PathBuf>,
pub command: Command<Cli>,
}
Expand description
The command line interface for bonsaidb
.
Fields
url: Option<Url>
A url to a remote server.
pinned_certificate: Option<PathBuf>
A pinned certificate to use when connecting to url
.
command: Command<Cli>
The command to execute on the connection specified.
Implementations
Trait Implementations
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
fn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
Build an [Command
] that can update self
. Read more
Instantiate Self
from [ArgMatches
], parsing the arguments as needed. Read more
Assign values from ArgMatches
to self
.
fn parse() -> Self
fn parse() -> Self
Parse from std::env::args_os()
, exit on error
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl<Cli> RefUnwindSafe for Args<Cli> where
<Cli as CommandLine>::Backend: RefUnwindSafe,
<Cli as CommandLine>::Subcommand: RefUnwindSafe,
impl<Cli> Unpin for Args<Cli> where
<Cli as CommandLine>::Backend: Unpin,
<Cli as CommandLine>::Subcommand: Unpin,
impl<Cli> UnwindSafe for Args<Cli> where
<Cli as CommandLine>::Backend: UnwindSafe,
<Cli as CommandLine>::Subcommand: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more