Avoid unnecessary item paths

This commit is contained in:
Xiretza 2024-02-02 15:27:17 +00:00
parent 42d2f29bfc
commit 227c9fef43

View file

@ -1,6 +1,6 @@
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use serde_repr::{Deserialize_repr, Serialize_repr};
use std::net::IpAddr;
use std::{collections::HashMap, net::IpAddr};
use thiserror::Error;
#[derive(Debug)]
@ -65,7 +65,7 @@ pub struct Status {
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct CommonResponseHeader {
request_arguments: std::collections::HashMap<String, String>,
request_arguments: HashMap<String, String>,
status: Status,
#[serde(with = "time::serde::rfc3339")]
timestamp: time::OffsetDateTime,
@ -88,7 +88,7 @@ pub struct CommonResponseBody<T> {
#[serde(rename_all = "PascalCase")]
pub struct UnitAndValues<T> {
unit: String,
values: std::collections::HashMap<String, T>,
values: HashMap<String, T>,
}
#[derive(Debug, Serialize, Deserialize)]