#[non_exhaustive]pub struct ColumnData {
pub column: String,
pub values: Vec<ColumnType>,
pub metadata: Option<ColumnMetadata>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.column: StringUsed to store column names.
values: Vec<ColumnType>To store column data.
metadata: Option<ColumnMetadata>To store column metadata.
Implementations§
Source§impl ColumnData
impl ColumnData
Sourcepub fn set_column<T: Into<String>>(self, v: T) -> Self
pub fn set_column<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Sourcepub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<ColumnMetadata>,
pub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<ColumnMetadata>,
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<ColumnMetadata>,
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<ColumnMetadata>,
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§fn clone(&self) -> ColumnData
fn clone(&self) -> ColumnData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColumnData
impl Debug for ColumnData
Source§impl Default for ColumnData
impl Default for ColumnData
Source§fn default() -> ColumnData
fn default() -> ColumnData
Returns the “default value” for a type. Read more
Source§impl PartialEq for ColumnData
impl PartialEq for ColumnData
Source§fn eq(&self, other: &ColumnData) -> bool
fn eq(&self, other: &ColumnData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColumnData
Auto Trait Implementations§
impl Freeze for ColumnData
impl RefUnwindSafe for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnsafeUnpin for ColumnData
impl UnwindSafe for ColumnData
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