pub struct AddDatapoints {
pub id: IdentityOrInstance,
pub datapoints: DatapointsEnumType,
}Expand description
Add datapoints to a time series.
Fields§
§id: IdentityOrInstanceID or external ID of time series to insert into.
datapoints: DatapointsEnumTypeData points to insert.
Implementations§
Source§impl AddDatapoints
impl AddDatapoints
Sourcepub fn new(id: i64, datapoints: DatapointsEnumType) -> AddDatapoints
pub fn new(id: i64, datapoints: DatapointsEnumType) -> AddDatapoints
Create a new batch of data points to insert.
§Arguments
id- Internal ID of time series to insert into.datapoints- Datapoints to insert.
Sourcepub fn new_external_id(
external_id: &str,
datapoints: DatapointsEnumType,
) -> AddDatapoints
pub fn new_external_id( external_id: &str, datapoints: DatapointsEnumType, ) -> AddDatapoints
Create a new batch of data points to insert.
§Arguments
external_id- External ID of time series to insert into.datapoints- Datapoints to insert.
Trait Implementations§
Source§impl Clone for AddDatapoints
impl Clone for AddDatapoints
Source§fn clone(&self) -> AddDatapoints
fn clone(&self) -> AddDatapoints
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 AddDatapoints
impl Debug for AddDatapoints
Source§impl From<AddDatapoints> for DataPointInsertionItem
impl From<AddDatapoints> for DataPointInsertionItem
Source§fn from(req: AddDatapoints) -> DataPointInsertionItem
fn from(req: AddDatapoints) -> DataPointInsertionItem
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AddDatapoints
impl RefUnwindSafe for AddDatapoints
impl Send for AddDatapoints
impl Sync for AddDatapoints
impl Unpin for AddDatapoints
impl UnwindSafe for AddDatapoints
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