messaging_api_line/models/
get_webhook_endpoint_response.rs

1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetWebhookEndpointResponse {
16    /// Webhook URL
17    #[serde(rename = "endpoint")]
18    pub endpoint: String,
19    /// Webhook usage status. Send a webhook event from the LINE Platform to the webhook URL only if enabled.  `true`: Webhook usage is enabled. `false`: Webhook usage is disabled. 
20    #[serde(rename = "active")]
21    pub active: bool,
22}
23
24impl GetWebhookEndpointResponse {
25    pub fn new(endpoint: String, active: bool) -> GetWebhookEndpointResponse {
26        GetWebhookEndpointResponse {
27            endpoint,
28            active,
29        }
30    }
31}
32