pub enum GeoSearchOrder {
Asc,
Desc,
}
Expand description
Matching items are returned unsorted by default. To sort them, use one of the following two options:
Variants§
Asc
Sort returned items from the nearest to the farthest, relative to the center point.
Desc
Sort returned items from the farthest to the nearest, relative to the center point.
Trait Implementations§
Source§impl ToArgs for GeoSearchOrder
impl ToArgs for GeoSearchOrder
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for GeoSearchOrder
impl RefUnwindSafe for GeoSearchOrder
impl Send for GeoSearchOrder
impl Sync for GeoSearchOrder
impl Unpin for GeoSearchOrder
impl UnwindSafe for GeoSearchOrder
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