pub enum OrderDirection {
Asc,
Desc,
Random,
}Expand description
A sort direction.
PHP: Utopia\Query\OrderDirection.
Variants§
Implementations§
Source§impl OrderDirection
impl OrderDirection
Sourcepub const CASES: &'static [OrderDirection]
pub const CASES: &'static [OrderDirection]
Every case, in declaration order.
PHP: cases().
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\OrderDirection"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\OrderDirection"
The PHP class of this enumeration.
Sourcepub fn try_from_value(value: &str) -> Option<Self>
pub fn try_from_value(value: &str) -> Option<Self>
The case with backing value value, if any.
PHP: tryFrom().
Sourcepub fn from_value(value: &str) -> Result<Self, Error>
pub fn from_value(value: &str) -> Result<Self, Error>
The case with backing value value.
PHP: from(), which throws ValueError (Error::InvalidValue) with the same message.
Trait Implementations§
Source§impl Clone for OrderDirection
impl Clone for OrderDirection
impl Copy for OrderDirection
Source§impl Debug for OrderDirection
impl Debug for OrderDirection
Source§impl Display for OrderDirection
impl Display for OrderDirection
impl Eq for OrderDirection
Source§impl Hash for OrderDirection
impl Hash for OrderDirection
Source§impl PartialEq for OrderDirection
impl PartialEq for OrderDirection
impl StructuralPartialEq for OrderDirection
Auto Trait Implementations§
impl Forget for OrderDirection
impl Freeze for OrderDirection
impl Move for OrderDirection
impl RefUnwindSafe for OrderDirection
impl Send for OrderDirection
impl Sync for OrderDirection
impl Unpin for OrderDirection
impl UnsafeUnpin for OrderDirection
impl UnwindSafe for OrderDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.