pub struct CliArgs {Show 28 fields
pub host: Option<String>,
pub port: Option<u16>,
pub color: bool,
pub no_color: bool,
pub browser: Option<String>,
pub ssl: bool,
pub no_file_io: bool,
pub debug: bool,
pub coverage: bool,
pub execute: Option<String>,
pub file: Option<String>,
pub keyspace: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub connect_timeout: Option<u64>,
pub request_timeout: Option<u64>,
pub tty: bool,
pub encoding: Option<String>,
pub cqlshrc: Option<String>,
pub cqlversion: Option<String>,
pub protocol_version: Option<u8>,
pub consistency_level: Option<String>,
pub serial_consistency_level: Option<String>,
pub no_compact: bool,
pub disable_history: bool,
pub secure_connect_bundle: Option<String>,
pub completions: Option<Shell>,
pub generate_man: bool,
}Expand description
The Apache Cassandra interactive CQL shell (Rust implementation).
Connects to a Cassandra cluster and provides an interactive shell for executing CQL statements.
Fields§
§host: Option<String>Contact point hostname (default: 127.0.0.1)
port: Option<u16>Native transport port (default: 9042)
color: boolForce colored output
no_color: boolDisable colored output
browser: Option<String>Browser for CQL HELP (unused in modern cqlsh)
ssl: boolEnable SSL/TLS connection
no_file_io: boolDisable file I/O commands (COPY, SOURCE, CAPTURE)
debug: boolShow additional debug info
coverage: boolCollect coverage (internal, accepted but ignored)
execute: Option<String>Execute a CQL statement and exit
file: Option<String>Execute statements from a file
keyspace: Option<String>Default keyspace
username: Option<String>Authentication username
password: Option<String>Authentication password
connect_timeout: Option<u64>Connection timeout in seconds
request_timeout: Option<u64>Per-request timeout in seconds
tty: boolForce TTY mode
encoding: Option<String>Set character encoding (default: utf-8)
cqlshrc: Option<String>Path to cqlshrc file (default: ~/.cassandra/cqlshrc)
cqlversion: Option<String>CQL version to use
protocol_version: Option<u8>Native protocol version
consistency_level: Option<String>Initial consistency level
serial_consistency_level: Option<String>Initial serial consistency level
no_compact: boolDisable compact storage interpretation
disable_history: boolDisable saving of command history
secure_connect_bundle: Option<String>Secure connect bundle for Astra DB
completions: Option<Shell>Generate shell completion script for the given shell (bash, zsh, fish, elvish, powershell)
generate_man: boolGenerate man page to stdout (hidden, used by release pipeline)
Implementations§
Trait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
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.Source§impl Parser for CliArgs
impl Parser for CliArgs
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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