toasty-core 0.2.0

Core types, schema representations, and driver interface for Toasty
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Sort direction for an [`OrderByExpr`](super::OrderByExpr).
///
/// # Examples
///
/// ```
/// use toasty_core::stmt::Direction;
///
/// let dir = Direction::Asc;
/// assert_eq!(dir, Direction::Asc);
/// ```
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Direction {
    /// Ascending order (smallest first).
    Asc,
    /// Descending order (largest first).
    Desc,
}