pub struct TraversalOptions {
pub algorithm: TraversalAlgorithm,
pub direction: TraversalDirection,
pub max_depth: usize,
pub max_cross_repo_hops: usize,
pub node_limit: usize,
pub edge_limit: usize,
pub timeout_ms: u64,
pub k: usize,
pub edge_kind_costs: Vec<EdgeKindCost>,
}Expand description
Bounds and costs controlling one graph traversal.
Fields§
§algorithm: TraversalAlgorithmTraversal strategy.
direction: TraversalDirectionRelationship direction.
max_depth: usizeMaximum number of segments in a path.
max_cross_repo_hops: usizeMaximum number of cross-repository segments in a path.
node_limit: usizeMaximum number of distinct nodes observed.
edge_limit: usizeMaximum number of relationship examinations.
timeout_ms: u64Wall-clock budget in milliseconds.
k: usizeNumber of paths requested for k_shortest; inclusively bounded by 16.
edge_kind_costs: Vec<EdgeKindCost>Optional positive base costs keyed by relationship kind.
Trait Implementations§
Source§impl Clone for TraversalOptions
impl Clone for TraversalOptions
Source§fn clone(&self) -> TraversalOptions
fn clone(&self) -> TraversalOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraversalOptions
impl Debug for TraversalOptions
Source§impl Default for TraversalOptions
impl Default for TraversalOptions
Source§impl<'de> Deserialize<'de> for TraversalOptions
impl<'de> Deserialize<'de> for TraversalOptions
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
Source§impl JsonSchema for TraversalOptions
impl JsonSchema for TraversalOptions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TraversalOptions
impl PartialEq for TraversalOptions
Source§impl Serialize for TraversalOptions
impl Serialize for TraversalOptions
impl StructuralPartialEq for TraversalOptions
Auto Trait Implementations§
impl Freeze for TraversalOptions
impl RefUnwindSafe for TraversalOptions
impl Send for TraversalOptions
impl Sync for TraversalOptions
impl Unpin for TraversalOptions
impl UnsafeUnpin for TraversalOptions
impl UnwindSafe for TraversalOptions
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