pub enum OrderBySort {
Asc,
Desc,
Using(ObjectName),
}Expand description
The sort order for an ORDER BY expression.
See PostgreSQL USING operator:
https://www.postgresql.org/docs/current/sql-select.html
Variants§
Trait Implementations§
Source§impl Clone for OrderBySort
impl Clone for OrderBySort
Source§fn clone(&self) -> OrderBySort
fn clone(&self) -> OrderBySort
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderBySort
impl Debug for OrderBySort
Source§impl<'de> Deserialize<'de> for OrderBySort
impl<'de> Deserialize<'de> for OrderBySort
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OrderBySort
Source§impl Hash for OrderBySort
impl Hash for OrderBySort
Source§impl Ord for OrderBySort
impl Ord for OrderBySort
Source§fn cmp(&self, other: &OrderBySort) -> Ordering
fn cmp(&self, other: &OrderBySort) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OrderBySort
impl PartialEq for OrderBySort
Source§fn eq(&self, other: &OrderBySort) -> bool
fn eq(&self, other: &OrderBySort) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OrderBySort
impl PartialOrd for OrderBySort
Source§impl Serialize for OrderBySort
impl Serialize for OrderBySort
impl StructuralPartialEq for OrderBySort
Source§impl Visit for OrderBySort
impl Visit for OrderBySort
Source§impl VisitMut for OrderBySort
impl VisitMut for OrderBySort
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreAuto Trait Implementations§
impl Freeze for OrderBySort
impl RefUnwindSafe for OrderBySort
impl Send for OrderBySort
impl Sync for OrderBySort
impl Unpin for OrderBySort
impl UnsafeUnpin for OrderBySort
impl UnwindSafe for OrderBySort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more