/*
* LINE Messaging API
*
* This document describes LINE Messaging API.
*
* The version of the OpenAPI document: 0.0.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetWebhookEndpointResponse {
/// Webhook URL
#[serde(rename = "endpoint")]
pub endpoint: String,
/// 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.
#[serde(rename = "active")]
pub active: bool,
}
impl GetWebhookEndpointResponse {
pub fn new(endpoint: String, active: bool) -> GetWebhookEndpointResponse {
GetWebhookEndpointResponse {
endpoint,
active,
}
}
}