pub struct RawCtxTableColumnBuilder { /* private fields */ }Expand description
Builder for individual table columns referenced by a table schema.
Implementations§
Source§impl RawCtxTableColumnBuilder
impl RawCtxTableColumnBuilder
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Create a column builder for the specified column name.
Sourcepub fn base64(name: impl Into<String>) -> Self
pub fn base64(name: impl Into<String>) -> Self
Convenience constructor for base64-encoded binary columns.
Sourcepub fn decoder(self, decoder: impl Into<String>) -> Self
pub fn decoder(self, decoder: impl Into<String>) -> Self
Override the column decoder used when normalising values (json, utf8, …).
Sourcepub fn option(self, key: impl Into<String>, value: JsonValue) -> Self
pub fn option(self, key: impl Into<String>, value: JsonValue) -> Self
Attach decoder-specific options (stored under options).
Sourcepub fn default_value(self, value: JsonValue) -> Self
pub fn default_value(self, value: JsonValue) -> Self
Provide a fallback value used when column data is missing.
Sourcepub fn optional(self, optional: bool) -> Self
pub fn optional(self, optional: bool) -> Self
Mark the column optional (missing entries use default or None).
Sourcepub fn dtype(self, dtype: impl Into<String>) -> Self
pub fn dtype(self, dtype: impl Into<String>) -> Self
Declare the logical dtype associated with the column (e.g. string, float64).
Sourcepub fn schema_metadata(self, metadata: JsonValue) -> Self
pub fn schema_metadata(self, metadata: JsonValue) -> Self
Attach additional schema metadata to the column.
Sourcepub fn manifest(self, manifest: JsonValue) -> Self
pub fn manifest(self, manifest: JsonValue) -> Self
Associate manifest-derived hints with the column (e.g. upstream dataset name).
Sourcepub fn manifest_column(self, column: impl Into<String>) -> Self
pub fn manifest_column(self, column: impl Into<String>) -> Self
Convenience helper for binding a manifest column name.
Trait Implementations§
Source§impl Clone for RawCtxTableColumnBuilder
impl Clone for RawCtxTableColumnBuilder
Source§fn clone(&self) -> RawCtxTableColumnBuilder
fn clone(&self) -> RawCtxTableColumnBuilder
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 RawCtxTableColumnBuilder
impl RefUnwindSafe for RawCtxTableColumnBuilder
impl Send for RawCtxTableColumnBuilder
impl Sync for RawCtxTableColumnBuilder
impl Unpin for RawCtxTableColumnBuilder
impl UnwindSafe for RawCtxTableColumnBuilder
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