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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more