Enum query_structure::OrderByHop
source · pub enum OrderByHop {
Relation(RelationFieldRef),
Composite(CompositeFieldRef),
}
Expand description
Describes a hop over to a relation or composite for an orderBy statement.
Variants§
Relation(RelationFieldRef)
Composite(CompositeFieldRef)
Implementations§
source§impl OrderByHop
impl OrderByHop
pub fn as_relation_hop(&self) -> Option<&RelationFieldRef>
Trait Implementations§
source§impl Clone for OrderByHop
impl Clone for OrderByHop
source§fn clone(&self) -> OrderByHop
fn clone(&self) -> OrderByHop
Returns a copy of the value. Read more
1.0.0 · 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 OrderByHop
impl Debug for OrderByHop
source§impl From<&Zipper<CompositeFieldId>> for OrderByHop
impl From<&Zipper<CompositeFieldId>> for OrderByHop
source§fn from(cf: &CompositeFieldRef) -> Self
fn from(cf: &CompositeFieldRef) -> Self
Converts to this type from the input type.
source§impl From<&Zipper<RelationFieldId>> for OrderByHop
impl From<&Zipper<RelationFieldId>> for OrderByHop
source§fn from(rf: &RelationFieldRef) -> Self
fn from(rf: &RelationFieldRef) -> Self
Converts to this type from the input type.
source§impl From<Zipper<CompositeFieldId>> for OrderByHop
impl From<Zipper<CompositeFieldId>> for OrderByHop
source§fn from(cf: CompositeFieldRef) -> Self
fn from(cf: CompositeFieldRef) -> Self
Converts to this type from the input type.
source§impl From<Zipper<RelationFieldId>> for OrderByHop
impl From<Zipper<RelationFieldId>> for OrderByHop
source§fn from(rf: RelationFieldRef) -> Self
fn from(rf: RelationFieldRef) -> Self
Converts to this type from the input type.
source§impl Hash for OrderByHop
impl Hash for OrderByHop
source§impl PartialEq for OrderByHop
impl PartialEq for OrderByHop
source§fn eq(&self, other: &OrderByHop) -> bool
fn eq(&self, other: &OrderByHop) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OrderByHop
impl StructuralEq for OrderByHop
impl StructuralPartialEq for OrderByHop
Auto Trait Implementations§
impl !RefUnwindSafe for OrderByHop
impl Send for OrderByHop
impl Sync for OrderByHop
impl Unpin for OrderByHop
impl !UnwindSafe for OrderByHop
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.