pub struct FindPathBetweenRequest {
pub src: Vec<String>,
pub dst: Vec<String>,
pub direction: i32,
pub direction_reverse: Option<i32>,
pub edges: Option<String>,
pub edges_reverse: Option<String>,
pub max_edges: Option<i64>,
pub max_depth: Option<i64>,
pub mask: Option<FieldMask>,
}
Expand description
FindPathToRequest describes a request to find a shortest path between a set of source nodes and a set of destination nodes. It works by performing a bidirectional breadth-first traversal from both sets at the same time.
Fields§
§src: Vec<String>
Set of source nodes (SWHIDs)
dst: Vec<String>
Set of destination nodes (SWHIDs)
direction: i32
Direction of the graph to traverse from the source set. Defaults to FORWARD.
direction_reverse: Option<i32>
Direction of the graph to traverse from the destination set. Defaults to
the opposite of direction
. If direction and direction_reverse are
identical, it will find the first common successor of both sets in the
given direction.
edges: Option<String>
Edge restriction string for the traversal from the source set. (e.g. “rev:dir,dir:cnt”). Defaults to “*” (all).
edges_reverse: Option<String>
Edge restriction string for the reverse traversal from the destination set. If not specified:
- If
edges
is not specified either, defaults to “*” - If direction == direction_reverse, defaults to
edges
- If direction != direction_reverse, defaults to the reverse of
edges
(e.g. “rev:dir” becomes “dir:rev”).
max_edges: Option<i64>
Maximum number of edges accessed in the traversal, after which it stops. Defaults to infinite.
max_depth: Option<i64>
Maximum depth of the traversal, after which it stops. Defaults to infinite.
mask: Option<FieldMask>
FieldMask of which fields are to be returned (e.g., “swhid,cnt.length”). By default, all fields are returned.
Implementations§
Source§impl FindPathBetweenRequest
impl FindPathBetweenRequest
Sourcepub fn direction(&self) -> GraphDirection
pub fn direction(&self) -> GraphDirection
Returns the enum value of direction
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_direction(&mut self, value: GraphDirection)
pub fn set_direction(&mut self, value: GraphDirection)
Sets direction
to the provided enum value.
Sourcepub fn direction_reverse(&self) -> GraphDirection
pub fn direction_reverse(&self) -> GraphDirection
Returns the enum value of direction_reverse
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_direction_reverse(&mut self, value: GraphDirection)
pub fn set_direction_reverse(&mut self, value: GraphDirection)
Sets direction_reverse
to the provided enum value.
Sourcepub fn edges(&self) -> &str
pub fn edges(&self) -> &str
Returns the value of edges
, or the default value if edges
is unset.
Sourcepub fn edges_reverse(&self) -> &str
pub fn edges_reverse(&self) -> &str
Returns the value of edges_reverse
, or the default value if edges_reverse
is unset.
Trait Implementations§
Source§impl Clone for FindPathBetweenRequest
impl Clone for FindPathBetweenRequest
Source§fn clone(&self) -> FindPathBetweenRequest
fn clone(&self) -> FindPathBetweenRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FindPathBetweenRequest
impl Debug for FindPathBetweenRequest
Source§impl Default for FindPathBetweenRequest
impl Default for FindPathBetweenRequest
Source§impl Message for FindPathBetweenRequest
impl Message for FindPathBetweenRequest
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 FindPathBetweenRequest
impl PartialEq for FindPathBetweenRequest
impl StructuralPartialEq for FindPathBetweenRequest
Auto Trait Implementations§
impl Freeze for FindPathBetweenRequest
impl RefUnwindSafe for FindPathBetweenRequest
impl Send for FindPathBetweenRequest
impl Sync for FindPathBetweenRequest
impl Unpin for FindPathBetweenRequest
impl UnwindSafe for FindPathBetweenRequest
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
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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>
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>
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 moreSource§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