#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FetchBotResponseBot {
#[serde(rename = "_id")]
pub _id: String,
#[serde(rename = "owner")]
pub owner: String,
#[serde(rename = "token")]
pub token: String,
#[serde(rename = "public")]
pub public: bool,
#[serde(rename = "analytics", skip_serializing_if = "Option::is_none")]
pub analytics: Option<bool>,
#[serde(rename = "discoverable", skip_serializing_if = "Option::is_none")]
pub discoverable: Option<bool>,
#[serde(rename = "interactions_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub interactions_url: Option<Option<String>>,
#[serde(rename = "terms_of_service_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub terms_of_service_url: Option<Option<String>>,
#[serde(rename = "privacy_policy_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub privacy_policy_url: Option<Option<String>>,
#[serde(rename = "flags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub flags: Option<Option<i32>>,
}
impl FetchBotResponseBot {
pub fn new(_id: String, owner: String, token: String, public: bool) -> FetchBotResponseBot {
FetchBotResponseBot {
_id,
owner,
token,
public,
analytics: None,
discoverable: None,
interactions_url: None,
terms_of_service_url: None,
privacy_policy_url: None,
flags: None,
}
}
}