Struct rustis::commands::GeoSearchResult
source · pub struct GeoSearchResult<M>where
M: PrimitiveResponse,{
pub member: M,
pub distance: Option<f64>,
pub geo_hash: Option<i64>,
pub coordinates: Option<(f64, f64)>,
}
Expand description
Result of the geosearch
command.
Fields§
§member: M
The matched member.
distance: Option<f64>
The distance of the matched member from the specified center.
geo_hash: Option<i64>
The geohash integer of the matched member
coordinates: Option<(f64, f64)>
The coordinates (longitude, latitude) of the matched member
Trait Implementations§
source§impl<M> Debug for GeoSearchResult<M>where
M: PrimitiveResponse + Debug,
impl<M> Debug for GeoSearchResult<M>where
M: PrimitiveResponse + Debug,
source§impl<'de, M> Deserialize<'de> for GeoSearchResult<M>where
M: PrimitiveResponse + DeserializeOwned,
impl<'de, M> Deserialize<'de> for GeoSearchResult<M>where
M: PrimitiveResponse + DeserializeOwned,
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
Auto Trait Implementations§
impl<M> Freeze for GeoSearchResult<M>where
M: Freeze,
impl<M> RefUnwindSafe for GeoSearchResult<M>where
M: RefUnwindSafe,
impl<M> Send for GeoSearchResult<M>where
M: Send,
impl<M> Sync for GeoSearchResult<M>where
M: Sync,
impl<M> Unpin for GeoSearchResult<M>where
M: Unpin,
impl<M> UnwindSafe for GeoSearchResult<M>where
M: UnwindSafe,
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