mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 06:47:28 +00:00
30 lines
747 B
Rust
30 lines
747 B
Rust
/*
|
|
* Tribufu API
|
|
*
|
|
* API to access Tribufu services.
|
|
*
|
|
* The version of the OpenAPI document: 1.3.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", deserialize_with = "Option::deserialize")]
|
|
pub token: Option<String>,
|
|
#[serde(rename = "token_type_hint")]
|
|
pub token_type_hint: models::TokenHintType,
|
|
}
|
|
|
|
impl RevokeRequest {
|
|
pub fn new(token: Option<String>, token_type_hint: models::TokenHintType) -> RevokeRequest {
|
|
RevokeRequest {
|
|
token,
|
|
token_type_hint,
|
|
}
|
|
}
|
|
}
|
|
|