nile_client_rs/models/
create_access_token_response.rs

1/*
2 * Nile API
3 *
4 * Making SaaS chill.
5 *
6 * The version of the OpenAPI document: 0.1.0-fdd7cd5
7 * Contact: support@thenile.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct CreateAccessTokenResponse {
13    /// The secret key to use for authentication
14    #[serde(rename = "token")]
15    pub token: String,
16    #[serde(rename = "token_info", skip_serializing_if = "Option::is_none")]
17    pub token_info: Option<Box<crate::models::AccessTokenInfo>>,
18}
19
20impl CreateAccessTokenResponse {
21    pub fn new(token: String) -> CreateAccessTokenResponse {
22        CreateAccessTokenResponse {
23            token,
24            token_info: None,
25        }
26    }
27}
28
29use serde::{Deserialize, Serialize};