tribufu-rust/src/models/introspect_request.rs
Guilherme Werner 23af141e2d
Generate api client with openapi-generator (#3)
* Generate api client with openapi-generator

* Add wrapper struct

* Add basic example
2025-06-03 19:47:49 -03:00

30 lines
828 B
Rust

/*
* 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 IntrospectRequest {
#[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 IntrospectRequest {
pub fn new() -> IntrospectRequest {
IntrospectRequest {
token: None,
token_type_hint: None,
}
}
}