mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-18 03:54:18 +00:00
Generate api client with openapi-generator
This commit is contained in:
27
src/models/hash_view_model.rs
Normal file
27
src/models/hash_view_model.rs
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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 HashViewModel {
|
||||
#[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub value: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl HashViewModel {
|
||||
pub fn new() -> HashViewModel {
|
||||
HashViewModel {
|
||||
value: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user