pub struct CreateDataSource {
pub name: String,
pub minimum: Option<f64>,
pub maximum: Option<f64>,
pub heartbeat: i64,
pub serie_type: CreateDataSourceType,
}
Expand description
Arguments for a data source (DS).
Fields§
§name: String
Name of the data source. Must be between 1 and 64 characters and only contain alphanumeric characters and underscores and dashes.
minimum: Option<f64>
Minimum value
maximum: Option<f64>
Maximum value
heartbeat: i64
Heartbeat, if no data is received for this amount of time, the value is unknown.
serie_type: CreateDataSourceType
Type of the data source
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateDataSource
impl RefUnwindSafe for CreateDataSource
impl Send for CreateDataSource
impl Sync for CreateDataSource
impl Unpin for CreateDataSource
impl UnwindSafe for CreateDataSource
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