Use default username 'me' and clean up query params

This commit is contained in:
2024-12-27 23:06:09 -05:00
parent 2d60bf7c45
commit 1000d5ea2d
4 changed files with 60 additions and 88 deletions

View File

@@ -119,11 +119,12 @@ pub struct Datapoint {
/// Parameters for creating or updating a datapoint
#[must_use]
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Serialize)]
pub struct CreateDatapoint {
/// The value to record
pub value: f64,
/// Timestamp for the datapoint, defaults to now if None
#[serde(with = "time::serde::timestamp::option")]
pub timestamp: Option<OffsetDateTime>,
/// Date string (e.g. "20150831"), alternative to timestamp
pub daystamp: Option<String>,