Lines
100 %
Functions
41.27 %
Branches
use serde::Deserialize;
use serde_json::{Map, Value};
#[derive(Deserialize)]
pub struct ApplicationIdPath {
pub application_id: String,
}
pub struct PostApplicationBody {
pub data: PostApplicationData,
pub struct PostApplicationData {
pub code: String,
#[serde(rename = "unitId")]
pub unit_id: String,
#[serde(rename = "hostUri")]
pub host_uri: String,
pub name: Option<String>,
pub info: Option<Map<String, Value>>,
pub struct GetApplicationCountQuery {
pub unit: Option<String>,
pub code: Option<String>,
pub contains: Option<String>,
#[derive(Clone, Deserialize)]
pub struct GetApplicationListQuery {
pub offset: Option<u64>,
pub limit: Option<u64>,
pub sort: Option<String>,
pub format: Option<ListFormat>,
pub struct PatchApplicationBody {
pub data: PatchApplicationData,
pub struct PatchApplicationData {
pub host_uri: Option<String>,
#[derive(Clone, Deserialize, PartialEq)]
pub enum ListFormat {
#[serde(rename = "array")]
Array,
#[serde(rename = "data")]
Data,