pulsar_admin_sdk/models/
post_schema_payload.rs

1/*
2 * Pulsar Admin REST API
3 *
4 * This provides the REST API for admin operations
5 *
6 * The version of the OpenAPI document: v2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct PostSchemaPayload {
15    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
16    pub properties: Option<std::collections::HashMap<String, String>>,
17    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
18    pub schema: Option<String>,
19    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
20    pub r#type: Option<String>,
21}
22
23impl PostSchemaPayload {
24    pub fn new() -> PostSchemaPayload {
25        PostSchemaPayload {
26            properties: None,
27            schema: None,
28            r#type: None,
29        }
30    }
31}
32