/*
* traQ v3
*
* traQ v3 API
*
* The version of the OpenAPI document: 3.0
*
* Generated by: https://openapi-generator.tech
*/
/// PostChannelRequest : チャンネル作成リクエスト
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PostChannelRequest {
/// チャンネル名
#[serde(rename = "name")]
pub name: String,
/// 親チャンネルのUUID ルートに作成する場合はnullを指定
#[serde(rename = "parent", deserialize_with = "Option::deserialize")]
pub parent: Option<uuid::Uuid>,
}
impl PostChannelRequest {
/// チャンネル作成リクエスト
pub fn new(name: String, parent: Option<uuid::Uuid>) -> PostChannelRequest {
PostChannelRequest { name, parent }
}
}