Skip to main content

fastcomments_sdk/client/src/models/
user_search_section.rs

1/*
2 * fastcomments
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum UserSearchSection {
17    #[serde(rename = "moderators")]
18    Moderators,
19    #[serde(rename = "onThisPage")]
20    OnThisPage,
21    #[serde(rename = "onThisSite")]
22    OnThisSite,
23
24}
25
26impl std::fmt::Display for UserSearchSection {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Moderators => write!(f, "moderators"),
30            Self::OnThisPage => write!(f, "onThisPage"),
31            Self::OnThisSite => write!(f, "onThisSite"),
32        }
33    }
34}
35
36impl Default for UserSearchSection {
37    fn default() -> UserSearchSection {
38        Self::Moderators
39    }
40}
41