#[non_exhaustive]pub struct Dataset {Show 23 fields
pub id: i32,
pub datastream_id: i32,
pub datastream_version: Option<i32>,
pub created_at: f64,
pub created_by: Option<String>,
pub import_status: ImportStatus,
pub import_progress: Option<f64>,
pub import_message: Option<String>,
pub import_time: Option<f64>,
pub path: String,
pub metadata: Metadata,
pub cold_path: Option<String>,
pub cold_bytes: Option<u64>,
pub hot_bytes: Option<u64>,
pub backup_path: Option<String>,
pub backup_size: Option<u64>,
pub plugin: Option<String>,
pub plugin_args: Option<String>,
pub n_datapoints: Option<u64>,
pub n_signals: Option<u64>,
pub timestamp_start: Option<f64>,
pub timestamp_stop: Option<f64>,
pub import_speed: Option<f64>,
}Expand description
Dataset metadata returned by the MarpleDB API.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: i32Dataset id.
datastream_id: i32Owning stream id.
datastream_version: Option<i32>Owning stream version.
created_at: f64Creation timestamp as epoch seconds.
created_by: Option<String>User that created the dataset, if available.
import_status: ImportStatusCurrent import status.
import_progress: Option<f64>Current import progress, if available.
import_message: Option<String>Import status message, if available.
import_time: Option<f64>Import duration, if available.
path: StringOriginal dataset path or filename.
metadata: MetadataUser-defined dataset metadata.
cold_path: Option<String>Cold-storage path.
cold_bytes: Option<u64>Cold-storage byte size.
hot_bytes: Option<u64>Hot-storage byte size.
backup_path: Option<String>Backup path, if available.
backup_size: Option<u64>Backup byte size, if available.
plugin: Option<String>Import plugin name.
plugin_args: Option<String>Import plugin arguments.
n_datapoints: Option<u64>Number of datapoints, if known.
n_signals: Option<u64>Number of signals, if known.
timestamp_start: Option<f64>Dataset start timestamp, if known.
timestamp_stop: Option<f64>Dataset stop timestamp, if known.
import_speed: Option<f64>Import speed, if known.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dataset
impl<'de> Deserialize<'de> for Dataset
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
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnsafeUnpin for Dataset
impl UnwindSafe for Dataset
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