mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-06-01 09:42:37 +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
30
src/models/revoke_request.rs
Normal file
30
src/models/revoke_request.rs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* 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, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct RevokeRequest {
|
||||
#[serde(rename = "token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<Option<String>>,
|
||||
#[serde(rename = "token_type_hint", skip_serializing_if = "Option::is_none")]
|
||||
pub token_type_hint: Option<models::TokenHintType>,
|
||||
}
|
||||
|
||||
impl RevokeRequest {
|
||||
pub fn new() -> RevokeRequest {
|
||||
RevokeRequest {
|
||||
token: None,
|
||||
token_type_hint: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue