Add Deserialize to Create and Update datapoints

This commit is contained in:
2025-01-28 21:39:50 -05:00
parent d368d045ce
commit 619b2b57f1

View File

@@ -119,7 +119,7 @@ pub struct Datapoint {
/// Parameters for creating or updating a datapoint
#[must_use]
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateDatapoint {
/// The value to record
pub value: f64,
@@ -172,7 +172,7 @@ impl CreateDatapoint {
}
/// Parameters for updating an existing datapoint
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UpdateDatapoint {
/// ID of the datapoint to update
#[serde(skip_serializing)]