use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExchangeCodeResponse {
#[serde(rename = "access_token")]
pub access_token: String,
#[serde(rename = "refresh_token")]
pub refresh_token: String,
#[serde(rename = "token_type")]
pub token_type: String,
}
impl ExchangeCodeResponse {
pub fn new(access_token: String, refresh_token: String, token_type: String) -> ExchangeCodeResponse {
ExchangeCodeResponse {
access_token,
refresh_token,
token_type,
}
}
}