Avoid unnecessary item paths
This commit is contained in:
parent
42d2f29bfc
commit
227c9fef43
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||||
use serde_repr::{Deserialize_repr, Serialize_repr};
|
use serde_repr::{Deserialize_repr, Serialize_repr};
|
||||||
use std::net::IpAddr;
|
use std::{collections::HashMap, net::IpAddr};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
@ -65,7 +65,7 @@ pub struct Status {
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "PascalCase")]
|
#[serde(rename_all = "PascalCase")]
|
||||||
pub struct CommonResponseHeader {
|
pub struct CommonResponseHeader {
|
||||||
request_arguments: std::collections::HashMap<String, String>,
|
request_arguments: HashMap<String, String>,
|
||||||
status: Status,
|
status: Status,
|
||||||
#[serde(with = "time::serde::rfc3339")]
|
#[serde(with = "time::serde::rfc3339")]
|
||||||
timestamp: time::OffsetDateTime,
|
timestamp: time::OffsetDateTime,
|
||||||
|
@ -88,7 +88,7 @@ pub struct CommonResponseBody<T> {
|
||||||
#[serde(rename_all = "PascalCase")]
|
#[serde(rename_all = "PascalCase")]
|
||||||
pub struct UnitAndValues<T> {
|
pub struct UnitAndValues<T> {
|
||||||
unit: String,
|
unit: String,
|
||||||
values: std::collections::HashMap<String, T>,
|
values: HashMap<String, T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
|
Loading…
Reference in a new issue