pub struct GeoPoint {
pub latitude: f32,
pub longitude: f32,
}Expand description
The type returned by the point method in cypher
Fields§
§latitude: f32latitude
longitude: f32longitude
Trait Implementations§
Source§impl FromGraphValue for GeoPoint
impl FromGraphValue for GeoPoint
Source§fn from_graph_value(value: GraphValue) -> RedisResult<Self>
fn from_graph_value(value: GraphValue) -> RedisResult<Self>
Converts the GraphValue to the implementing Type
Source§impl FromRedisValue for GeoPoint
impl FromRedisValue for GeoPoint
Source§fn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
Similar to
from_redis_value but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.impl StructuralPartialEq for GeoPoint
Auto Trait Implementations§
impl Freeze for GeoPoint
impl RefUnwindSafe for GeoPoint
impl Send for GeoPoint
impl Sync for GeoPoint
impl Unpin for GeoPoint
impl UnwindSafe for GeoPoint
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