pub struct CloudOptions {
pub timeout: Option<u64>,
pub wakeup: bool,
}
Expand description
Configuration options for connecting to ClickHouse
cloud instances.
The CloudOptions
struct defines settings specific to ClickHouse
cloud
deployments, used within ClientOptions
. These options control the behavior
of cloud wakeup pings to ensure the instance is active before connecting.
§Fields
timeout
: Optional timeout (in seconds) for the cloud wakeup ping; ifNone
, uses a default timeout.wakeup
: Iftrue
, sends a wakeup ping before connecting; iffalse
, skips the ping.
§Feature
Requires the cloud
feature to be enabled.
§Examples
ⓘ
use clickhouse_arrow::prelude::*;
let cloud_options = CloudOptions {
timeout: Some(10),
wakeup: true,
};
let options = ClientOptions {
cloud: cloud_options,
..ClientOptions::default()
};
Fields§
§timeout: Option<u64>
§wakeup: bool
Trait Implementations§
Source§impl Clone for CloudOptions
impl Clone for CloudOptions
Source§fn clone(&self) -> CloudOptions
fn clone(&self) -> CloudOptions
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 CloudOptions
impl Debug for CloudOptions
Source§impl Default for CloudOptions
impl Default for CloudOptions
Source§fn default() -> CloudOptions
fn default() -> CloudOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudOptions
impl<'de> Deserialize<'de> for CloudOptions
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
Source§impl PartialEq for CloudOptions
impl PartialEq for CloudOptions
Source§impl Serialize for CloudOptions
impl Serialize for CloudOptions
impl Copy for CloudOptions
impl StructuralPartialEq for CloudOptions
Auto Trait Implementations§
impl Freeze for CloudOptions
impl RefUnwindSafe for CloudOptions
impl Send for CloudOptions
impl Sync for CloudOptions
impl Unpin for CloudOptions
impl UnwindSafe for CloudOptions
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