pub struct TraversalStep {
pub relation_id: String,
pub from: String,
pub to: String,
pub relation_type: String,
pub depth: u32,
pub from_name: Option<String>,
pub to_name: Option<String>,
}Expand description
One hop of a traversal.
Fields§
§relation_id: String§from: String§to: String§relation_type: String§depth: u32§from_name: Option<String>Display name of from (absent when it could not be resolved).
The server resolves these so a caller does not have to. Without them every consumer re-queries each id just to print a name — which is the second call the field exists to remove.
to_name: Option<String>Display name of to (absent when it could not be resolved).
Trait Implementations§
Source§impl Clone for TraversalStep
impl Clone for TraversalStep
Source§impl Debug for TraversalStep
impl Debug for TraversalStep
Source§impl<'de> Deserialize<'de> for TraversalStep
impl<'de> Deserialize<'de> for TraversalStep
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 TraversalStep
impl RefUnwindSafe for TraversalStep
impl Send for TraversalStep
impl Sync for TraversalStep
impl Unpin for TraversalStep
impl UnsafeUnpin for TraversalStep
impl UnwindSafe for TraversalStep
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