retronomicon_dto/
lib.rs

1pub mod encodings;
2pub mod error;
3pub mod params;
4pub mod types;
5
6pub mod artifact;
7pub mod cores;
8pub mod games;
9pub mod platforms;
10pub mod systems;
11pub mod tags;
12pub mod teams;
13pub mod user;
14
15pub mod client;
16pub use client::routes;
17
18/// The expected response of an end point that does not return anything.
19#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
20#[cfg_attr(feature = "openapi", derive(schemars::JsonSchema))]
21pub struct Ok;
22
23/// A JWT authentication token.
24#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
25#[cfg_attr(feature = "openapi", derive(schemars::JsonSchema))]
26pub struct AuthTokenResponse {
27    /// The token itself.
28    pub token: String,
29}
30
31pub use error::JsonError;