/*
* Manager API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0-dev
* Contact: support@babelforce.com
* Generated by: https://openapi-generator.tech
*/
use crate::gen::manager::models;
use serde::{Deserialize, Serialize};
/// IntegrationToken : An access token issued to babelforce by a third party (e.g. via OAuth) and associated with an integration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IntegrationToken {
/// The access token's uuid.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// When the token expires.
#[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
pub expires_at: Option<chrono::DateTime<chrono::FixedOffset>>,
}
impl IntegrationToken {
/// An access token issued to babelforce by a third party (e.g. via OAuth) and associated with an integration.
pub fn new() -> IntegrationToken {
IntegrationToken {
id: None,
expires_at: None,
}
}
}