/*
* Webhook Type Definition
*
* Webhook event definition of the LINE Messaging API
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LinkThingsContent {
/// Type
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<String>,
/// Device ID of the device that has been linked with LINE.
#[serde(rename = "deviceId")]
pub device_id: String,
}
impl LinkThingsContent {
pub fn new(r#type: String, device_id: String) -> LinkThingsContent {
LinkThingsContent {
r#type: Some(r#type),
device_id,
}
}
}