pub struct Timeseries {
pub description: CogniteDescribable,
pub source: CogniteSourceable,
pub is_step: bool,
pub source_unit: String,
pub unit: Option<InstanceId>,
pub assets: Option<Vec<InstanceId>>,
pub activities: Option<Vec<InstanceId>>,
pub type: TimeSeriesType,
}Expand description
The properties of the time series.
Fields§
§description: CogniteDescribableDescriptions of the instance.
source: CogniteSourceableSource system.
is_step: boolDefines whether the time series is a step series or not.
source_unit: StringUnit as specified in the source system.
unit: Option<InstanceId>Direct relation to the unit of the time series.
assets: Option<Vec<InstanceId>>List of assets to which this file relates.
activities: Option<Vec<InstanceId>>List of activities associated with this time series.
type: TimeSeriesTypeType of datapoints the time series contains.
Implementations§
Trait Implementations§
Source§impl Clone for Timeseries
impl Clone for Timeseries
Source§fn clone(&self) -> Timeseries
fn clone(&self) -> Timeseries
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 Timeseries
impl Debug for Timeseries
Source§impl Default for Timeseries
impl Default for Timeseries
Source§fn default() -> Timeseries
fn default() -> Timeseries
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Timeseries
impl<'de> Deserialize<'de> for Timeseries
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 Serialize for Timeseries
impl Serialize for Timeseries
Auto Trait Implementations§
impl Freeze for Timeseries
impl RefUnwindSafe for Timeseries
impl Send for Timeseries
impl Sync for Timeseries
impl Unpin for Timeseries
impl UnwindSafe for Timeseries
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