/* * 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, #[serde(rename = "token_type_hint")] pub token_type_hint: models::TokenHintType, } impl RevokeRequest { pub fn new(token: Option, token_type_hint: models::TokenHintType) -> RevokeRequest { RevokeRequest { token, token_type_hint, } } }