pub struct TraverseResponseDto {
pub paths: Vec<TraversalPathDto>,
pub total_paths: u32,
pub truncated: bool,
}Expand description
POST /v1/entities/{id}/traverse response.
Fields§
§paths: Vec<TraversalPathDto>The paths found.
total_paths: u32Total paths (may exceed paths.len() when truncated).
truncated: boolWhether a bound was hit before the graph was exhausted.
Implementations§
Source§impl TraverseResponseDto
impl TraverseResponseDto
Sourcepub fn from_frames(frames: Vec<RelationTraverseResponseFrame>) -> Self
pub fn from_frames(frames: Vec<RelationTraverseResponseFrame>) -> Self
Fold the streamed RELATION_TRAVERSE frames into one response. v1 emits a
single final frame; this aggregates defensively — paths flatten across
frames, truncated is true if any frame hit a bound, total_paths comes
from the final frame’s running total.
Trait Implementations§
Source§impl Debug for TraverseResponseDto
impl Debug for TraverseResponseDto
Auto Trait Implementations§
impl Freeze for TraverseResponseDto
impl RefUnwindSafe for TraverseResponseDto
impl Send for TraverseResponseDto
impl Sync for TraverseResponseDto
impl Unpin for TraverseResponseDto
impl UnsafeUnpin for TraverseResponseDto
impl UnwindSafe for TraverseResponseDto
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