pub struct TableSchema { /* private fields */ }Expand description
Represents a time-series data table with schema
Implementations§
Source§impl TableSchema
impl TableSchema
Sourcepub fn builder() -> TableSchemaBuilder
pub fn builder() -> TableSchemaBuilder
Create a new table schema builder
Sourcepub fn add_tag<T: Into<String>>(
self,
name: T,
data_type: ColumnDataType,
) -> Self
pub fn add_tag<T: Into<String>>( self, name: T, data_type: ColumnDataType, ) -> Self
Add a tag column (for indexing and grouping)
Sourcepub fn add_timestamp<T: Into<String>>(
self,
name: T,
data_type: ColumnDataType,
) -> Self
pub fn add_timestamp<T: Into<String>>( self, name: T, data_type: ColumnDataType, ) -> Self
Add a timestamp column (timeline for time series)
Sourcepub fn add_field<T: Into<String>>(
self,
name: T,
data_type: ColumnDataType,
) -> Self
pub fn add_field<T: Into<String>>( self, name: T, data_type: ColumnDataType, ) -> Self
Add a field column (measurement values)
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§fn clone(&self) -> TableSchema
fn clone(&self) -> TableSchema
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 TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl UnsafeUnpin for TableSchema
impl UnwindSafe for TableSchema
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request