pub struct Setting { /* private fields */ }Expand description
A single ClickHouse query setting, consisting of a key, value, and flags.
A setting represents a key-value pair sent to the ClickHouse server to
configure query execution. The key is a string (e.g., max_threads), and
the value is a SettingValue (integer, boolean, float, or string). The
important and custom flags control serialization behavior in the native
protocol.
§Fields
key: The setting name (e.g.,max_threads).value: The setting value, stored as aSettingValue.important: Iftrue, marks the setting as important (affects serialization).custom: Iftrue, serializes the value as a custom string (e.g., for complex types).
§ClickHouse Reference
See the ClickHouse Settings Reference for valid setting names and their types.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Setting
impl<'de> Deserialize<'de> for Setting
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 PartialOrd for Setting
impl PartialOrd for Setting
impl StructuralPartialEq for Setting
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnwindSafe for Setting
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