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
 */

/// StampWithThumbnail : スタンプ情報とサムネイルの有無

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct StampWithThumbnail {
    /// スタンプUUID
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    /// スタンプ名
    #[serde(rename = "name")]
    pub name: String,
    /// 作成者UUID
    #[serde(rename = "creatorId")]
    pub creator_id: uuid::Uuid,
    /// 作成日時
    #[serde(rename = "createdAt")]
    pub created_at: String,
    /// 更新日時
    #[serde(rename = "updatedAt")]
    pub updated_at: String,
    /// ファイルUUID
    #[serde(rename = "fileId")]
    pub file_id: uuid::Uuid,
    /// Unicode絵文字か
    #[serde(rename = "isUnicode")]
    pub is_unicode: bool,
    /// サムネイルの有無
    #[serde(rename = "hasThumbnail")]
    pub has_thumbnail: bool,
}

impl StampWithThumbnail {
    /// スタンプ情報とサムネイルの有無
    pub fn new(
        id: uuid::Uuid,
        name: String,
        creator_id: uuid::Uuid,
        created_at: String,
        updated_at: String,
        file_id: uuid::Uuid,
        is_unicode: bool,
        has_thumbnail: bool,
    ) -> StampWithThumbnail {
        StampWithThumbnail {
            id,
            name,
            creator_id,
            created_at,
            updated_at,
            file_id,
            is_unicode,
            has_thumbnail,
        }
    }
}