traq 0.1.5

⚠️ Community Driven ⚠️ traQ v3 API
Documentation
/*
 * traQ v3
 *
 * traQ v3 API
 *
 * The version of the OpenAPI document: 3.0
 *
 * Generated by: https://openapi-generator.tech
 */

/// OAuth2Client : OAuth2クライアント情報

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct OAuth2Client {
    /// クライアントUUID
    #[serde(rename = "id")]
    pub id: String,
    /// クライアント名
    #[serde(rename = "name")]
    pub name: String,
    /// 説明
    #[serde(rename = "description")]
    pub description: String,
    /// クライアント開発者UUID
    #[serde(rename = "developerId")]
    pub developer_id: uuid::Uuid,
    /// 要求スコープの配列
    #[serde(rename = "scopes")]
    pub scopes: Vec<crate::models::OAuth2Scope>,
    /// confidential client なら true, public client なら false
    #[serde(rename = "confidential")]
    pub confidential: bool,
}

impl OAuth2Client {
    /// OAuth2クライアント情報
    pub fn new(
        id: String,
        name: String,
        description: String,
        developer_id: uuid::Uuid,
        scopes: Vec<crate::models::OAuth2Scope>,
        confidential: bool,
    ) -> OAuth2Client {
        OAuth2Client {
            id,
            name,
            description,
            developer_id,
            scopes,
            confidential,
        }
    }
}