Skip to main content

line_bot_sdk_messaging_api/models/
issue_link_token_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 IssueLinkTokenResponse {
16    /// Link token. Link tokens are valid for 10 minutes and can only be used once.  
17    #[serde(rename = "linkToken")]
18    pub link_token: String,
19}
20
21impl IssueLinkTokenResponse {
22    pub fn new(link_token: String) -> IssueLinkTokenResponse {
23        IssueLinkTokenResponse { link_token }
24    }
25}