pub struct GraphTraverseRequest {
pub graph_name: String,
pub start_node: u64,
pub direction: i32,
pub max_depth: u32,
pub edge_type: String,
pub as_of: u64,
pub max_frontier: u32,
pub return_paths: bool,
pub max_degree: u32,
pub tx_as_of: u64,
}Fields§
§graph_name: String§start_node: u64§direction: i32§max_depth: u32Maximum BFS depth (hops) from the start node. 0 = start node only.
edge_type: StringOnly follow edges of this type (empty = all types).
as_of: u64Point-in-time filter (ms): only follow edges valid at this instant (valid_from <= as_of && (valid_to == 0 || valid_to > as_of)). 0 = no filter.
max_frontier: u32Cap on the total number of expanded/visited nodes to bound latency. 0 = use a server default (currently 100000). Pass uint32 max (0xFFFFFFFF) to explicitly opt out of the cap (unbounded traversal).
return_paths: boolWhen true, populate path (the edge chain from start to each node).
max_degree: u32Per-node edge fanout cap: when expanding a single frontier node, scan at most this many of its edges, so a high-degree supernode cannot be materialized in full (OOM / latency). 0 = engine default.
tx_as_of: u64As-of-then transaction-time filter (ms): only follow edges that were already
believed at this recorded-time
(tx_from <= tx_as_of && (tx_to == 0 || tx_to > tx_as_of)). Combined with
as_of this gives bitemporal “what was believed at tx_as_of about valid-time
as_of”. 0 = no transaction-time filter (legacy edges are always known).
Implementations§
Source§impl GraphTraverseRequest
impl GraphTraverseRequest
Sourcepub fn direction(&self) -> GraphTraverseDirection
pub fn direction(&self) -> GraphTraverseDirection
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: GraphTraverseDirection)
pub fn set_direction(&mut self, value: GraphTraverseDirection)
Sets direction to the provided enum value.
Trait Implementations§
Source§impl Clone for GraphTraverseRequest
impl Clone for GraphTraverseRequest
Source§fn clone(&self) -> GraphTraverseRequest
fn clone(&self) -> GraphTraverseRequest
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 GraphTraverseRequest
impl Debug for GraphTraverseRequest
Source§impl Default for GraphTraverseRequest
impl Default for GraphTraverseRequest
Source§impl Message for GraphTraverseRequest
impl Message for GraphTraverseRequest
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 GraphTraverseRequest
impl PartialEq for GraphTraverseRequest
impl StructuralPartialEq for GraphTraverseRequest
Auto Trait Implementations§
impl Freeze for GraphTraverseRequest
impl RefUnwindSafe for GraphTraverseRequest
impl Send for GraphTraverseRequest
impl Sync for GraphTraverseRequest
impl Unpin for GraphTraverseRequest
impl UnsafeUnpin for GraphTraverseRequest
impl UnwindSafe for GraphTraverseRequest
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