Skip to main content

resolve_path

Function resolve_path 

Source
pub fn resolve_path(
    obj: &dyn ObjectView,
    path: &ObjectPath,
    store: Option<&ObjectStore>,
) -> Vec<StixValue>
Expand description

Resolve path against obj, returning every value the path selects.

Returns an empty vec if the object’s type does not match the path root, or the path leads nowhere. A [*] step or a _refs list can produce several values. When a step descends into a string value, that string is treated as a STIX id and dereferenced through store (if provided) — this implements _ref/_refs traversal such as network-traffic:src_ref.value.