Skip to main content

esi_openapi/
prelude.rs

1//! Module for easy imports.
2
3pub use crate::builders::EsiBuilder;
4pub use crate::client::{
5    AuthenticationInformation, ErrorLimitStatus, Esi, RateLimitStatus, RequestType,
6    COMPATIBILITY_DATE_DEFAULT,
7};
8pub use crate::errors::{EsiError, EsiResult};
9pub use crate::pkce::PkceVerifier;
10pub use crate::spec::Spec;
11pub(crate) use serde::{Deserialize, Serialize};
12
13/// Access token (JWT) payload.
14///
15/// For more information on the content of this struct, see
16/// the [ESI documentation].
17///
18/// [ESI documentation]: https://docs.esi.evetech.net/docs/sso/validating_eve_jwt.html
19#[derive(Debug, Deserialize, Serialize, PartialEq)]
20#[allow(missing_docs)]
21pub struct TokenClaims {
22    pub aud: Vec<String>,
23    pub azp: String,
24    pub exp: i64,
25    pub iat: i64,
26    pub iss: String,
27    pub jti: String,
28    pub kid: String,
29    pub name: String,
30    pub owner: String,
31    pub region: String,
32    pub scp: Option<serde_json::Value>,
33    pub sub: String,
34    pub tenant: String,
35    pub tier: String,
36}