#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PostClientRequest {
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "callbackUrl")]
pub callback_url: String,
#[serde(rename = "scopes")]
pub scopes: Vec<crate::models::OAuth2Scope>,
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "confidential", skip_serializing_if = "Option::is_none")]
pub confidential: Option<bool>,
}
impl PostClientRequest {
pub fn new(
name: String,
callback_url: String,
scopes: Vec<crate::models::OAuth2Scope>,
description: String,
) -> PostClientRequest {
PostClientRequest {
name,
callback_url,
scopes,
description,
confidential: None,
}
}
}