rorm_sql/
ordering.rs

1/**
2All supported orderings
3 */
4#[derive(Debug, Copy, Clone)]
5pub enum Ordering {
6    /// Ascending ordering
7    Asc,
8    /// Descending ordering
9    Desc,
10}
11
12/**
13Representation of an entry in a ORDER BY expression
14*/
15#[derive(Debug, Copy, Clone)]
16pub struct OrderByEntry<'until_build> {
17    /// Ordering to apply
18    pub ordering: Ordering,
19    /// Optional table name
20    pub table_name: Option<&'until_build str>,
21    /// Column to apply the ordering to
22    pub column_name: &'until_build str,
23}