pub struct TraverseStep {
pub dir: String,
pub predicate: Option<String>,
pub where_kind: Option<String>,
pub limit: usize,
}Expand description
Serializable multi-step graph traversal (§16): start entities resolved
by kind + name substring, then each step walks out / in / both
edges (optional predicate filter, optional kind filter on the landing
entity). Pure JSON — the fluent builder lives in SDKs, this AST is
the wire contract every transport shares.
Fields§
§dir: StringEdge direction from the current frontier: out, in, or both.
predicate: Option<String>Optional predicate filter (e.g. calls, writes).
where_kind: Option<String>Optional kind filter on the landing entity (e.g. symbol, state).
limit: usizeMax edges followed per frontier entity per step (default 50).
Trait Implementations§
Source§impl Clone for TraverseStep
impl Clone for TraverseStep
Source§impl Debug for TraverseStep
impl Debug for TraverseStep
Source§impl<'de> Deserialize<'de> for TraverseStep
impl<'de> Deserialize<'de> for TraverseStep
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 TraverseStep
impl JsonSchema for TraverseStep
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 moreAuto Trait Implementations§
impl Freeze for TraverseStep
impl RefUnwindSafe for TraverseStep
impl Send for TraverseStep
impl Sync for TraverseStep
impl Unpin for TraverseStep
impl UnsafeUnpin for TraverseStep
impl UnwindSafe for TraverseStep
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