use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachedModuleContent {
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<String>,
#[serde(rename = "botId")]
pub bot_id: String,
#[serde(rename = "scopes")]
pub scopes: Vec<String>,
}
impl AttachedModuleContent {
pub fn new(r#type: String, bot_id: String, scopes: Vec<String>) -> AttachedModuleContent {
AttachedModuleContent {
r#type: Some(r#type),
bot_id,
scopes,
}
}
}