stcloud/models/
app_description.rs

1/* 
2 * Sematext Cloud API
3 *
4 * API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
5 *
6 * OpenAPI spec version: v3
7 * 
8 * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 */
10#![allow(unused_imports)]
11
12use serde_json::Value;
13use bigdecimal::BigDecimal;
14use chrono::{Date, NaiveDateTime, NaiveDate, DateTime, FixedOffset, Utc};
15
16use crate::models::*;
17use crate::date_serializer;
18use crate::date_serializer_opt;
19use crate::serialize_quoted_numbers;
20use crate::serialize_quoted_numbers_opt;
21//Uncomment this to deal with limited rfc support on server side
22//use crate::datetime_serializer::*;
23
24#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
25pub struct AppDescription {
26  #[serde(rename = "description")]
27  #[serde(default)]
28  description: Option<String> 
29}
30
31impl AppDescription {
32  pub fn new() -> AppDescription {
33    AppDescription {
34      description: None
35    }
36  }
37
38  pub fn set_description(&mut self, description: String) {
39    self.description = Some(description);
40  }
41
42  pub fn with_description(mut self, description: String) -> AppDescription {
43    self.description = Some(description);
44    self
45  }
46
47  pub fn description(&self) -> Option<&String> {
48    self.description.as_ref()
49  }
50
51  pub fn reset_description(&mut self) {
52    self.description = None;
53  }
54
55
56  pub fn validate(&self) {
57  }
58
59}
60
61