pub enum SpatioServiceRequest {
Show 17 variants
Upsert {
namespace: String,
id: String,
point: Point3d,
metadata: Value,
opts: Option<UpsertOptions>,
},
Get {
namespace: String,
id: String,
},
Delete {
namespace: String,
id: String,
},
QueryRadius {
namespace: String,
center: Point3d,
radius: f64,
limit: usize,
},
Knn {
namespace: String,
center: Point3d,
k: usize,
},
QueryBbox {
namespace: String,
min_x: f64,
min_y: f64,
max_x: f64,
max_y: f64,
limit: usize,
},
QueryCylinder {
namespace: String,
center: Point,
min_z: f64,
max_z: f64,
radius: f64,
limit: usize,
},
QueryTrajectory {
namespace: String,
id: String,
start_time: Option<f64>,
end_time: Option<f64>,
limit: usize,
},
InsertTrajectory {
namespace: String,
id: String,
trajectory: Vec<(f64, Point3d, Value)>,
},
QueryBbox3d {
namespace: String,
min_x: f64,
min_y: f64,
min_z: f64,
max_x: f64,
max_y: f64,
max_z: f64,
limit: usize,
},
QueryNear {
namespace: String,
id: String,
radius: f64,
limit: usize,
},
Contains {
namespace: String,
polygon: Polygon,
limit: usize,
},
Distance {
namespace: String,
id1: String,
id2: String,
metric: Option<DistanceMetric>,
},
DistanceTo {
namespace: String,
id: String,
point: Point,
metric: Option<DistanceMetric>,
},
ConvexHull {
namespace: String,
},
BoundingBox {
namespace: String,
},
Stats {},
}Expand description
The request sent over the wire from the client to the server.
Variants§
Upsert
Get
Delete
QueryRadius
Knn
QueryBbox
QueryCylinder
QueryTrajectory
InsertTrajectory
QueryBbox3d
Fields
QueryNear
Contains
Distance
DistanceTo
ConvexHull
BoundingBox
Stats
Trait Implementations§
Source§impl Debug for SpatioServiceRequest
impl Debug for SpatioServiceRequest
Source§impl<'de> Deserialize<'de> for SpatioServiceRequest
impl<'de> Deserialize<'de> for SpatioServiceRequest
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 Freeze for SpatioServiceRequest
impl RefUnwindSafe for SpatioServiceRequest
impl Send for SpatioServiceRequest
impl Sync for SpatioServiceRequest
impl Unpin for SpatioServiceRequest
impl UnwindSafe for SpatioServiceRequest
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> 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