messaging_api_line/models/
confirm_template.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ConfirmTemplate {
16 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
17 pub r#type: Option<String>,
18 #[serde(rename = "text")]
19 pub text: String,
20 #[serde(rename = "actions")]
21 pub actions: Vec<models::Action>,
22}
23
24impl ConfirmTemplate {
25 pub fn new(r#type: String, text: String, actions: Vec<models::Action>) -> ConfirmTemplate {
26 ConfirmTemplate {
27 r#type: Some(r#type),
28 text,
29 actions,
30 }
31 }
32}