opentalk_client_data_persistence/account_tokens.rs
1// SPDX-FileCopyrightText: OpenTalk GmbH <mail@opentalk.eu>
2//
3// SPDX-License-Identifier: EUPL-1.2
4
5use chrono::{DateTime, Utc};
6use serde::{Deserialize, Serialize};
7
8/// The token data required to authorize client requests to the OpenTalk API.
9#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
10pub struct AccountTokens {
11 /// Expiry timestamp of access token
12 pub access_token_expiry: DateTime<Utc>,
13
14 /// Access token field
15 pub access_token: String,
16
17 /// Refresh token field
18 pub refresh_token: String,
19}