pub struct ColumnValue {
pub type_code: TypeCode,
pub data: Vec<u8>,
}Expand description
A value from a column, stored as little-endian bytes with type information.
Similar to C++ clickhouse-cpp’s ItemView but owned.
Fields§
§type_code: TypeCodeThe ClickHouse type code for this value.
data: Vec<u8>The raw little-endian byte representation of the value.
Implementations§
Source§impl ColumnValue
impl ColumnValue
Sourcepub fn from_string(value: &str) -> Self
pub fn from_string(value: &str) -> Self
Create a String value.
Trait Implementations§
Source§impl Clone for ColumnValue
impl Clone for ColumnValue
Source§fn clone(&self) -> ColumnValue
fn clone(&self) -> ColumnValue
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 ColumnValue
impl RefUnwindSafe for ColumnValue
impl Send for ColumnValue
impl Sync for ColumnValue
impl Unpin for ColumnValue
impl UnwindSafe for ColumnValue
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