pub struct GraphShortestPathRequest {}Fields§
§graph_name: String§src: u64§dst: u64Single destination. Used when targets is empty.
targets: Vec<u64>Optional destination set; the search stops once the k cheapest of these
are settled. When non-empty, dst is ignored.
edge_type: Stringoptional: only traverse this edge type
weight_encoding: i32§weight_key: Stringkey for TEXT_KEY / JSON_KEY (default “weight”)
default_weight: f64fallback cost when no weight decodes (default 1.0)
algorithm: i32§k: u32k-shortest loopless paths via Yen’s algorithm (0 or 1 = single best path).
as_of: u64As-of timestamp (ms): only edges live at this instant are traversed (valid_from <= as_of < valid_to, valid_to == 0 meaning no expiry). 0 = no temporal filter.
max_cost: f64Prune any path whose accumulated cost exceeds this (0 = no limit).
max_expansions: u64Safety bound on settled nodes per Dijkstra run (0 = engine default).
tx_as_of: u64As-of-then transaction-time filter (ms): only traverse edges believed at this recorded-time (tx_from <= tx_as_of && (tx_to == 0 || tx_to > tx_as_of)). 0 = no transaction-time filter.
Implementations§
Source§impl GraphShortestPathRequest
impl GraphShortestPathRequest
Sourcepub fn weight_encoding(&self) -> GraphWeightEncoding
pub fn weight_encoding(&self) -> GraphWeightEncoding
Returns the enum value of weight_encoding, or the default if the field is set to an invalid enum value.
Sourcepub fn set_weight_encoding(&mut self, value: GraphWeightEncoding)
pub fn set_weight_encoding(&mut self, value: GraphWeightEncoding)
Sets weight_encoding to the provided enum value.
Sourcepub fn algorithm(&self) -> GraphPathAlgorithm
pub fn algorithm(&self) -> GraphPathAlgorithm
Returns the enum value of algorithm, or the default if the field is set to an invalid enum value.
Sourcepub fn set_algorithm(&mut self, value: GraphPathAlgorithm)
pub fn set_algorithm(&mut self, value: GraphPathAlgorithm)
Sets algorithm to the provided enum value.
Trait Implementations§
Source§impl Clone for GraphShortestPathRequest
impl Clone for GraphShortestPathRequest
Source§fn clone(&self) -> GraphShortestPathRequest
fn clone(&self) -> GraphShortestPathRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphShortestPathRequest
impl Debug for GraphShortestPathRequest
Source§impl Default for GraphShortestPathRequest
impl Default for GraphShortestPathRequest
Source§impl Message for GraphShortestPathRequest
impl Message for GraphShortestPathRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GraphShortestPathRequest
impl PartialEq for GraphShortestPathRequest
impl StructuralPartialEq for GraphShortestPathRequest
Auto Trait Implementations§
impl Freeze for GraphShortestPathRequest
impl RefUnwindSafe for GraphShortestPathRequest
impl Send for GraphShortestPathRequest
impl Sync for GraphShortestPathRequest
impl Unpin for GraphShortestPathRequest
impl UnsafeUnpin for GraphShortestPathRequest
impl UnwindSafe for GraphShortestPathRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request