Lines
100 %
Functions
41.27 %
Branches
use serde::Deserialize;
use serde_json::{Map, Value};
#[derive(Deserialize)]
pub struct NetworkIdPath {
pub network_id: String,
}
pub struct PostNetworkBody {
pub data: PostNetworkData,
pub struct PostNetworkData {
pub code: String,
#[serde(rename = "unitId")]
pub unit_id: Option<String>,
#[serde(rename = "hostUri")]
pub host_uri: String,
pub name: Option<String>,
pub info: Option<Map<String, Value>>,
pub struct GetNetworkCountQuery {
pub unit: Option<String>,
pub code: Option<String>,
pub contains: Option<String>,
#[derive(Clone, Deserialize)]
pub struct GetNetworkListQuery {
pub offset: Option<u64>,
pub limit: Option<u64>,
pub sort: Option<String>,
pub format: Option<ListFormat>,
pub struct PatchNetworkBody {
pub data: PatchNetworkData,
pub struct PatchNetworkData {
pub host_uri: Option<String>,
#[derive(Clone, Deserialize, PartialEq)]
pub enum ListFormat {
#[serde(rename = "array")]
Array,
#[serde(rename = "data")]
Data,