pub struct TableBuilder { /* private fields */ }Implementations§
Source§impl TableBuilder
impl TableBuilder
pub fn new() -> Self
Sourcepub fn push_row(&mut self, row: BTreeMap<String, Value>)
pub fn push_row(&mut self, row: BTreeMap<String, Value>)
Adds one record from already-typed cells, keyed by column name. Columns
new to this record are created (back-filled with Null); columns absent
from it receive Null. Used by record-shaped parsers (NDJSON, logfmt).
Sourcepub fn push_value(&mut self, val: Value)
pub fn push_value(&mut self, val: Value)
Adds one JSON record. Objects contribute their fields; anything else goes
to the synthetic VALUE_COL column.
pub fn finish(self) -> Vec<Column>
Trait Implementations§
Source§impl Default for TableBuilder
impl Default for TableBuilder
Source§fn default() -> TableBuilder
fn default() -> TableBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableBuilder
impl RefUnwindSafe for TableBuilder
impl Send for TableBuilder
impl Sync for TableBuilder
impl Unpin for TableBuilder
impl UnsafeUnpin for TableBuilder
impl UnwindSafe for TableBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more