pub struct MergedConfig {Show 25 fields
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub keyspace: Option<String>,
pub ssl: bool,
pub color: ColorMode,
pub debug: bool,
pub tty: bool,
pub no_file_io: bool,
pub no_compact: bool,
pub disable_history: bool,
pub execute: Option<String>,
pub file: Option<String>,
pub connect_timeout: u64,
pub request_timeout: u64,
pub encoding: String,
pub cqlversion: Option<String>,
pub protocol_version: Option<u8>,
pub consistency_level: Option<String>,
pub serial_consistency_level: Option<String>,
pub browser: Option<String>,
pub secure_connect_bundle: Option<String>,
pub cqlshrc_path: PathBuf,
pub cqlshrc: CqlshrcConfig,
}Expand description
The fully resolved configuration after merging CLI args, environment variables, cqlshrc file, and defaults. Follows precedence: CLI > env > cqlshrc > defaults.
Fields§
§host: String§port: u16§username: Option<String>§password: Option<String>§keyspace: Option<String>§ssl: bool§color: ColorMode§debug: bool§tty: bool§no_file_io: bool§no_compact: bool§disable_history: bool§execute: Option<String>§file: Option<String>§connect_timeout: u64§request_timeout: u64§encoding: String§cqlversion: Option<String>§protocol_version: Option<u8>§consistency_level: Option<String>§serial_consistency_level: Option<String>§browser: Option<String>§secure_connect_bundle: Option<String>§cqlshrc_path: PathBuf§cqlshrc: CqlshrcConfigImplementations§
Source§impl MergedConfig
impl MergedConfig
Trait Implementations§
Source§impl Clone for MergedConfig
impl Clone for MergedConfig
Source§fn clone(&self) -> MergedConfig
fn clone(&self) -> MergedConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MergedConfig
impl RefUnwindSafe for MergedConfig
impl Send for MergedConfig
impl Sync for MergedConfig
impl Unpin for MergedConfig
impl UnwindSafe for MergedConfig
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> 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>
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