pub struct TraverseBody {
pub direction: String,
pub relation_types: Vec<String>,
pub max_depth: Option<u32>,
pub max_nodes: Option<u32>,
pub include_superseded: bool,
}Expand description
POST /v1/entities/{id}/traverse body. The anchor entity comes from the
path id; the body carries the walk parameters. All optional with sane
defaults (outgoing, depth 3, 100 nodes).
Fields§
§direction: Stringoutgoing (default), incoming, or both.
relation_types: Vec<String>Relation types to follow (empty = every type).
max_depth: Option<u32>Max hop depth; omitted → 3, clamped to 1..=5.
max_nodes: Option<u32>Max nodes to visit; omitted → 100, clamped to 1..=1000.
include_superseded: boolInclude superseded relations (default false).
Implementations§
Source§impl TraverseBody
impl TraverseBody
Sourcepub fn to_request(&self, id: &str) -> Result<RelationTraverseRequest, String>
pub fn to_request(&self, id: &str) -> Result<RelationTraverseRequest, String>
Build the wire request from the path id and this body. time_at = 0
means “as of now”.
Trait Implementations§
Source§impl Debug for TraverseBody
impl Debug for TraverseBody
Source§impl Default for TraverseBody
impl Default for TraverseBody
Source§impl<'de> Deserialize<'de> for TraverseBody
impl<'de> Deserialize<'de> for TraverseBody
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
Auto Trait Implementations§
impl Freeze for TraverseBody
impl RefUnwindSafe for TraverseBody
impl Send for TraverseBody
impl Sync for TraverseBody
impl Unpin for TraverseBody
impl UnsafeUnpin for TraverseBody
impl UnwindSafe for TraverseBody
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