Generate api client with openapi-generator

This commit is contained in:
Guilherme Werner 2025-06-03 19:09:41 -03:00
parent e701f20c1a
commit 0b32ab460c
68 changed files with 6774 additions and 883 deletions

View file

@ -0,0 +1,53 @@
/*
* Tribufu API
*
* REST API to access Tribufu services.
*
* The version of the OpenAPI document: 1.1.0
* Contact: contact@tribufu.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum LoginProvider {
#[serde(rename = "steam")]
Steam,
#[serde(rename = "epic")]
Epic,
#[serde(rename = "discord")]
Discord,
#[serde(rename = "microsoft")]
Microsoft,
#[serde(rename = "playstation")]
Playstation,
#[serde(rename = "google")]
Google,
#[serde(rename = "apple")]
Apple,
}
impl std::fmt::Display for LoginProvider {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Steam => write!(f, "steam"),
Self::Epic => write!(f, "epic"),
Self::Discord => write!(f, "discord"),
Self::Microsoft => write!(f, "microsoft"),
Self::Playstation => write!(f, "playstation"),
Self::Google => write!(f, "google"),
Self::Apple => write!(f, "apple"),
}
}
}
impl Default for LoginProvider {
fn default() -> LoginProvider {
Self::Steam
}
}