Trait InputJsonExtensions
Source pub trait InputJsonExtensions {
Show 13 methods
// Required methods
fn get_origin_coordinate(&self) -> Result<Coord<f32>, InputPluginError>;
fn get_destination_coordinate(
&self,
) -> Result<Option<Coord<f32>>, InputPluginError>;
fn add_origin_vertex(
&mut self,
vertex_id: VertexId,
) -> Result<(), InputPluginError>;
fn add_destination_vertex(
&mut self,
vertex_id: VertexId,
) -> Result<(), InputPluginError>;
fn add_origin_edge(
&mut self,
edge_id: EdgeId,
) -> Result<(), InputPluginError>;
fn add_destination_edge(
&mut self,
edge_id: EdgeId,
) -> Result<(), InputPluginError>;
fn get_origin_vertex(&self) -> Result<VertexId, InputPluginError>;
fn get_destination_vertex(
&self,
) -> Result<Option<VertexId>, InputPluginError>;
fn get_origin_edge(&self) -> Result<EdgeId, InputPluginError>;
fn get_destination_edge(&self) -> Result<Option<EdgeId>, InputPluginError>;
fn get_grid_search(&self) -> Option<&Value>;
fn add_query_weight_estimate(
&mut self,
weight: f64,
) -> Result<(), InputPluginError>;
fn get_query_weight_estimate(&self) -> Result<Option<f64>, CompassAppError>;
}