mirror of
https://github.com/Tribufu/TribufuRust
synced 2026-08-11 05:41:06 +00:00
Generate api client with openapi-generator (#3)
* Generate api client with openapi-generator * Add wrapper struct * Add basic example
This commit is contained in:
parent
e701f20c1a
commit
23af141e2d
69 changed files with 6886 additions and 880 deletions
38
src/models/code_challenge_method.rs
Normal file
38
src/models/code_challenge_method.rs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* 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 CodeChallengeMethod {
|
||||
#[serde(rename = "plain")]
|
||||
Plain,
|
||||
#[serde(rename = "S256")]
|
||||
S256,
|
||||
|
||||
}
|
||||
|
||||
impl std::fmt::Display for CodeChallengeMethod {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Plain => write!(f, "plain"),
|
||||
Self::S256 => write!(f, "S256"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for CodeChallengeMethod {
|
||||
fn default() -> CodeChallengeMethod {
|
||||
Self::Plain
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue