fastcomments-sdk 2.0.0

Official FastComments Rust SDK (Typed API Client & Utilities)
Documentation
/*
 * fastcomments
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::client::models;
use serde::{Deserialize, Serialize};

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PagesSortBy {
    #[serde(rename = "updatedAt")]
    UpdatedAt,
    #[serde(rename = "commentCount")]
    CommentCount,
    #[serde(rename = "title")]
    Title,

}

impl std::fmt::Display for PagesSortBy {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::UpdatedAt => write!(f, "updatedAt"),
            Self::CommentCount => write!(f, "commentCount"),
            Self::Title => write!(f, "title"),
        }
    }
}

impl Default for PagesSortBy {
    fn default() -> PagesSortBy {
        Self::UpdatedAt
    }
}