artcoded_api/models/
post_search_criteria.rs

1/*
2 * Artcoded
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PostSearchCriteria {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    #[serde(rename = "dateBefore", skip_serializing_if = "Option::is_none")]
19    pub date_before: Option<String>,
20    #[serde(rename = "dateAfter", skip_serializing_if = "Option::is_none")]
21    pub date_after: Option<String>,
22    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
23    pub title: Option<String>,
24    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
25    pub content: Option<String>,
26    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
27    pub tag: Option<String>,
28}
29
30impl PostSearchCriteria {
31    pub fn new() -> PostSearchCriteria {
32        PostSearchCriteria {
33            id: None,
34            date_before: None,
35            date_after: None,
36            title: None,
37            content: None,
38            tag: None,
39        }
40    }
41}