webhook_line/models/
attached_module_content.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AttachedModuleContent {
16 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18 pub r#type: Option<String>,
19 #[serde(rename = "botId")]
21 pub bot_id: String,
22 #[serde(rename = "scopes")]
24 pub scopes: Vec<String>,
25}
26
27impl AttachedModuleContent {
28 pub fn new(r#type: String, bot_id: String, scopes: Vec<String>) -> AttachedModuleContent {
29 AttachedModuleContent {
30 r#type: Some(r#type),
31 bot_id,
32 scopes,
33 }
34 }
35}