mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-18 09:35:44 +00:00
Release v1.3.0
This commit is contained in:
parent
33d76d7a4e
commit
dfa1dfb1c8
64 changed files with 3285 additions and 1329 deletions
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -13,17 +13,17 @@ 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>,
|
||||
#[serde(rename = "token", deserialize_with = "Option::deserialize")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "token_type_hint")]
|
||||
pub token_type_hint: models::TokenHintType,
|
||||
}
|
||||
|
||||
impl RevokeRequest {
|
||||
pub fn new() -> RevokeRequest {
|
||||
pub fn new(token: Option<String>, token_type_hint: models::TokenHintType) -> RevokeRequest {
|
||||
RevokeRequest {
|
||||
token: None,
|
||||
token_type_hint: None,
|
||||
token,
|
||||
token_type_hint,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue