foxclient 6.1.1

Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
Documentation
/*
 * Fox API
 *
 * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement.  To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit.  The requests may be logged for analytics and development purposes. 
 *
 * The version of the OpenAPI document: 6.1.1
 * Contact: admin@orangefox.tech
 * Generated by: https://openapi-generator.tech
 */

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

/// ReleaseSort : Sort modes accepted by `GET /releases?sort=`.  A typed enum rather than a free string: an unrecognised value used to fall through to the default arm, so `?sort=date_ascending` quietly returned the *opposite* order rather than reporting the typo. It also restores the enum the previous Python implementation published, which generated clients had been offering as a checked type.
/// Sort modes accepted by `GET /releases?sort=`.  A typed enum rather than a free string: an unrecognised value used to fall through to the default arm, so `?sort=date_ascending` quietly returned the *opposite* order rather than reporting the typo. It also restores the enum the previous Python implementation published, which generated clients had been offering as a checked type.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ReleaseSort {
    #[serde(rename = "date_asc")]
    DateAsc,
    #[serde(rename = "date_desc")]
    DateDesc,

}

impl std::fmt::Display for ReleaseSort {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::DateAsc => write!(f, "date_asc"),
            Self::DateDesc => write!(f, "date_desc"),
        }
    }
}

impl Default for ReleaseSort {
    fn default() -> ReleaseSort {
        Self::DateAsc
    }
}