webhook_line/models/delivery_context.rs
1/*
2 * Webhook Type Definition
3 *
4 * Webhook event definition of the LINE Messaging API
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DeliveryContext : webhook's delivery context information
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeliveryContext {
17 /// Whether the webhook event is a redelivered one or not.
18 #[serde(rename = "isRedelivery")]
19 pub is_redelivery: bool,
20}
21
22impl DeliveryContext {
23 /// webhook's delivery context information
24 pub fn new(is_redelivery: bool) -> DeliveryContext {
25 DeliveryContext {
26 is_redelivery,
27 }
28 }
29}
30