pub struct RawCtxTableSpecBuilder { /* private fields */ }Expand description
Builder for table schemas assembled in host code.
Implementations§
Source§impl RawCtxTableSpecBuilder
 
impl RawCtxTableSpecBuilder
Sourcepub fn orient(self, orient: impl Into<String>) -> Self
 
pub fn orient(self, orient: impl Into<String>) -> Self
Set the expected orientation (records, columns, …). Defaults to records.
Sourcepub fn column(self, column: RawCtxTableColumnBuilder) -> Self
 
pub fn column(self, column: RawCtxTableColumnBuilder) -> Self
Add a column definition to the schema (chainable).
Sourcepub fn add_column(&mut self, column: RawCtxTableColumnBuilder) -> &mut Self
 
pub fn add_column(&mut self, column: RawCtxTableColumnBuilder) -> &mut Self
Add a column definition to the schema in builder style (mutable).
Sourcepub fn build(self) -> RawCtxTableSpec
 
pub fn build(self) -> RawCtxTableSpec
Finalise the table specification.
Trait Implementations§
Source§impl Clone for RawCtxTableSpecBuilder
 
impl Clone for RawCtxTableSpecBuilder
Source§fn clone(&self) -> RawCtxTableSpecBuilder
 
fn clone(&self) -> RawCtxTableSpecBuilder
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 RawCtxTableSpecBuilder
 
impl Debug for RawCtxTableSpecBuilder
Source§impl Default for RawCtxTableSpecBuilder
 
impl Default for RawCtxTableSpecBuilder
Source§fn default() -> RawCtxTableSpecBuilder
 
fn default() -> RawCtxTableSpecBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RawCtxTableSpecBuilder
impl RefUnwindSafe for RawCtxTableSpecBuilder
impl Send for RawCtxTableSpecBuilder
impl Sync for RawCtxTableSpecBuilder
impl Unpin for RawCtxTableSpecBuilder
impl UnwindSafe for RawCtxTableSpecBuilder
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