messaging_api_line/models/
set_webhook_endpoint_request.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 SetWebhookEndpointRequest {
16    /// A valid webhook URL.
17    #[serde(rename = "endpoint")]
18    pub endpoint: String,
19}
20
21impl SetWebhookEndpointRequest {
22    pub fn new(endpoint: String) -> SetWebhookEndpointRequest {
23        SetWebhookEndpointRequest {
24            endpoint,
25        }
26    }
27}
28