messaging_api_line/models/
get_webhook_endpoint_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetWebhookEndpointResponse {
16 #[serde(rename = "endpoint")]
18 pub endpoint: String,
19 #[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