use crate::client::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CommentUserBadgeInfo {
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "type")]
pub r#type: i32,
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "displayLabel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub display_label: Option<Option<String>>,
#[serde(rename = "displaySrc", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub display_src: Option<Option<String>>,
#[serde(rename = "backgroundColor", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub background_color: Option<Option<String>>,
#[serde(rename = "borderColor", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub border_color: Option<Option<String>>,
#[serde(rename = "textColor", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub text_color: Option<Option<String>>,
#[serde(rename = "cssClass", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub css_class: Option<Option<String>>,
}
impl CommentUserBadgeInfo {
pub fn new(id: String, r#type: i32, description: String) -> CommentUserBadgeInfo {
CommentUserBadgeInfo {
id,
r#type,
description,
display_label: None,
display_src: None,
background_color: None,
border_color: None,
text_color: None,
css_class: None,
}
}
}