use serde::Serialize; #[derive(Debug, Serialize)] pub struct PostClient { pub data: PostClientData, #[serde(skip_serializing_if = "Option::is_none")] pub credentials: Option, } #[derive(Debug, Serialize)] pub struct PostClientData { #[serde(rename = "redirectUris")] pub redirect_uris: Vec, pub scopes: Vec, #[serde(rename = "userId", skip_serializing_if = "Option::is_none")] pub user_id: Option, pub name: String, pub image: Option, } #[derive(Debug, Default, Serialize)] pub struct GetClientCount { #[serde(skip_serializing_if = "Option::is_none")] pub user: Option, } #[derive(Debug, Default, Serialize)] pub struct GetClientList { #[serde(skip_serializing_if = "Option::is_none")] pub user: 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, } #[derive(Debug, Default, Serialize)] pub struct PatchClient { #[serde(skip_serializing_if = "Option::is_none")] pub data: Option, #[serde(rename = "regenSecret", skip_serializing_if = "Option::is_none")] pub regen_secret: Option, } #[derive(Debug, Default, Serialize)] pub struct PatchClientData { #[serde(rename = "redirectUris", skip_serializing_if = "Option::is_none")] pub redirect_uris: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub scopes: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub name: Option, #[serde(skip_serializing_if = "Option::is_none")] pub image: Option>, }