Struct fred::types::GeoRadiusInfo
source · pub struct GeoRadiusInfo {
pub member: RedisValue,
pub position: Option<GeoPosition>,
pub distance: Option<f64>,
pub hash: Option<i64>,
}
Available on crate feature
i-geo
only.Expand description
A typed struct representing the full output of the GEORADIUS (or similar) command.
Fields§
§member: RedisValue
§position: Option<GeoPosition>
§distance: Option<f64>
§hash: Option<i64>
Implementations§
source§impl GeoRadiusInfo
impl GeoRadiusInfo
sourcepub fn from_redis_value(
value: RedisValue,
withcoord: bool,
withdist: bool,
withhash: bool
) -> Result<Self, RedisError>
pub fn from_redis_value( value: RedisValue, withcoord: bool, withdist: bool, withhash: bool ) -> Result<Self, RedisError>
Parse the value with context from the calling command.
Trait Implementations§
source§impl Clone for GeoRadiusInfo
impl Clone for GeoRadiusInfo
source§fn clone(&self) -> GeoRadiusInfo
fn clone(&self) -> GeoRadiusInfo
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 GeoRadiusInfo
impl Debug for GeoRadiusInfo
source§impl Default for GeoRadiusInfo
impl Default for GeoRadiusInfo
source§impl PartialEq for GeoRadiusInfo
impl PartialEq for GeoRadiusInfo
impl Eq for GeoRadiusInfo
Auto Trait Implementations§
impl !Freeze for GeoRadiusInfo
impl RefUnwindSafe for GeoRadiusInfo
impl Send for GeoRadiusInfo
impl Sync for GeoRadiusInfo
impl Unpin for GeoRadiusInfo
impl UnwindSafe for GeoRadiusInfo
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