pub struct PathResult {
pub source_fingerprint: String,
pub target_fingerprint: String,
pub path_exists: bool,
pub path_length: Option<usize>,
pub path_cost: Option<f64>,
pub intermediate_nodes: Option<Vec<String>>,
}
Expand description
Represents a path between two nodes (e.g., between different partitions)
Fields§
§source_fingerprint: String
§target_fingerprint: String
§path_exists: bool
§path_length: Option<usize>
§path_cost: Option<f64>
§intermediate_nodes: Option<Vec<String>>
Trait Implementations§
source§impl Clone for PathResult
impl Clone for PathResult
source§fn clone(&self) -> PathResult
fn clone(&self) -> PathResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PathResult
impl Debug for PathResult
source§impl<'de> Deserialize<'de> for PathResult
impl<'de> Deserialize<'de> for PathResult
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 PartialEq for PathResult
impl PartialEq for PathResult
source§impl Serialize for PathResult
impl Serialize for PathResult
impl StructuralPartialEq for PathResult
Auto Trait Implementations§
impl Freeze for PathResult
impl RefUnwindSafe for PathResult
impl Send for PathResult
impl Sync for PathResult
impl Unpin for PathResult
impl UnwindSafe for PathResult
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)