pub struct ClickHouseConfig {
pub url: String,
pub database: String,
pub table: String,
pub username: Option<String>,
pub password: Option<String>,
pub connect_timeout_secs: u64,
pub write_timeout_secs: u64,
}Expand description
ClickHouse connection configuration.
Fields§
§url: StringClickHouse URL (e.g., “http://localhost:8123”).
database: StringDatabase name.
table: StringTable name.
username: Option<String>Username (optional).
password: Option<String>Password (optional).
connect_timeout_secs: u64Connection timeout in seconds.
write_timeout_secs: u64Write timeout in seconds.
Trait Implementations§
Source§impl Clone for ClickHouseConfig
impl Clone for ClickHouseConfig
Source§fn clone(&self) -> ClickHouseConfig
fn clone(&self) -> ClickHouseConfig
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 moreSource§impl Debug for ClickHouseConfig
impl Debug for ClickHouseConfig
Source§impl<'de> Deserialize<'de> for ClickHouseConfig
impl<'de> Deserialize<'de> for ClickHouseConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClickHouseConfig
impl RefUnwindSafe for ClickHouseConfig
impl Send for ClickHouseConfig
impl Sync for ClickHouseConfig
impl Unpin for ClickHouseConfig
impl UnsafeUnpin for ClickHouseConfig
impl UnwindSafe for ClickHouseConfig
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