#[non_exhaustive]pub struct DataSet {
pub name: String,
pub data_names: Vec<String>,
pub data_sources: Vec<DataSource>,
pub state: State,
pub status: Option<Status>,
pub ttl: Option<Duration>,
/* private fields */
}Expand description
A collection of data sources sent for processing.
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.name: StringThe dataset name, which will be used for querying, status and unload requests. This must be unique within a project.
data_names: Vec<String>Data dimension names allowed for this DataSet.
If left empty, all dimension names are included. This field works as a filter to avoid regenerating the data.
data_sources: Vec<DataSource>Input data.
state: StateDataset state in the system.
status: Option<Status>Dataset processing status.
ttl: Option<Duration>Periodically we discard dataset Event objects that have timestamps older than ‘ttl’. Omitting this field or a zero value means no events are discarded.
Implementations§
Source§impl DataSet
impl DataSet
pub fn new() -> Self
Sourcepub fn set_data_names<T, V>(self, v: T) -> Self
pub fn set_data_names<T, V>(self, v: T) -> Self
Sets the value of data_names.
Sourcepub fn set_data_sources<T, V>(self, v: T) -> Self
pub fn set_data_sources<T, V>(self, v: T) -> Self
Sets the value of data_sources.
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
Trait Implementations§
impl StructuralPartialEq for DataSet
Auto Trait Implementations§
impl Freeze for DataSet
impl RefUnwindSafe for DataSet
impl Send for DataSet
impl Sync for DataSet
impl Unpin 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