imdl 0.1.16

📦 A 40' shipping container for the internet
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::common::*;

#[derive(Clone, Copy, Debug, Default, PartialEq, IntoStaticStr, EnumString)]
#[strum(serialize_all = "kebab-case")]
pub(crate) enum SortOrder {
  #[default]
  Ascending,
  Descending,
}

impl SortOrder {
  pub(crate) fn name(self) -> &'static str {
    self.into()
  }
}