wallhaven_rs/models/enums/
sorting_order.rs

1use serde::{Deserialize, Serialize};
2
3/// The sorting order.
4///
5/// Check the variants for more information (Should be pretty clear already though).
6#[derive(Serialize, Deserialize, Clone, Copy, Debug)]
7#[serde(rename_all = "snake_case")]
8pub enum SortingOrder {
9    /// From top to bottom: 5 -> 4 -> 3 -> 2 -> 1
10    Desc,
11    /// From bottom to top: 1 -> 2 -> 3 -> 4 -> 5
12    Asc,
13}