use serde::Serialize; #[derive(Debug, Serialize)] pub struct PostNetworkRoute { pub data: PostNetworkRouteData, } #[derive(Debug, Serialize)] pub struct PostNetworkRouteData { #[serde(rename = "networkId")] pub network_id: String, #[serde(rename = "applicationId")] pub application_id: String, } #[derive(Debug, Default, Serialize)] pub struct GetNetworkRouteCount { #[serde(skip_serializing_if = "Option::is_none")] pub unit: Option, #[serde(skip_serializing_if = "Option::is_none")] pub application: Option, #[serde(skip_serializing_if = "Option::is_none")] pub network: Option, } #[derive(Debug, Default, Serialize)] pub struct GetNetworkRouteList { #[serde(skip_serializing_if = "Option::is_none")] pub unit: Option, #[serde(skip_serializing_if = "Option::is_none")] pub application: Option, #[serde(skip_serializing_if = "Option::is_none")] pub network: Option, #[serde(skip_serializing_if = "Option::is_none")] pub offset: Option, #[serde(skip_serializing_if = "Option::is_none")] pub limit: Option, #[serde(skip_serializing_if = "Option::is_none")] pub sort: Option, // this will be fill from sort_vec automatically. #[serde(skip_serializing)] pub sort_vec: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub format: Option, }