pub struct TimeseriesSchema {
pub created: DisplayOptionDateTime,
pub datum_type: DatumType,
pub field_schema: Vec<FieldSchema>,
pub timeseries_name: String,
}
Expand description
The schema for a timeseries.
This includes the name of the timeseries, as well as the datum type of its metric and the schema for each field.
Fields§
§created: DisplayOptionDateTime
§datum_type: DatumType
The type of an individual datum of a metric.
field_schema: Vec<FieldSchema>
§timeseries_name: String
Names are constructed by concatenating the target and metric names with ‘:’. Target and metric names must be lowercase alphanumeric characters with ‘_’ separating words.
Trait Implementations§
Source§impl Clone for TimeseriesSchema
impl Clone for TimeseriesSchema
Source§fn clone(&self) -> TimeseriesSchema
fn clone(&self) -> TimeseriesSchema
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 TimeseriesSchema
impl Debug for TimeseriesSchema
Source§impl Default for TimeseriesSchema
impl Default for TimeseriesSchema
Source§fn default() -> TimeseriesSchema
fn default() -> TimeseriesSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeseriesSchema
impl<'de> Deserialize<'de> for TimeseriesSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for TimeseriesSchema
impl JsonSchema for TimeseriesSchema
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for TimeseriesSchema
impl PartialEq for TimeseriesSchema
Source§impl Serialize for TimeseriesSchema
impl Serialize for TimeseriesSchema
Source§impl Tabled for TimeseriesSchema
impl Tabled for TimeseriesSchema
impl StructuralPartialEq for TimeseriesSchema
Auto Trait Implementations§
impl Freeze for TimeseriesSchema
impl RefUnwindSafe for TimeseriesSchema
impl Send for TimeseriesSchema
impl Sync for TimeseriesSchema
impl Unpin for TimeseriesSchema
impl UnwindSafe for TimeseriesSchema
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