pub struct EdgeEnd {
pub repo: Option<String>,
pub reference: Option<String>,
pub file: Option<String>,
pub line: Option<u64>,
}Expand description
One end of an imported edge.
Every field but repo is optional: the message end of a
publishes/consumes/enqueues triple carries no file or line, and a
producer that does not track a reference name leaves ref absent. Joined
to this graph on file (repo-relative) plus repo, never on ref –
ref is carried through for display only.
Fields§
§repo: Option<String>The repo id this end belongs to, or "message" for a fileless
message node. Absent (rather than a hard parse failure) when a
producer omits it – an end with no repo simply never matches the
mapped repo id.
reference: Option<String>The producer’s own symbol reference, display-only.
file: Option<String>The repo-relative file this end sits in, absent on a message end.
line: Option<u64>The line this end sits at, absent on a message end.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeEnd
impl<'de> Deserialize<'de> for EdgeEnd
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
impl StructuralPartialEq for EdgeEnd
Auto Trait Implementations§
impl Freeze for EdgeEnd
impl RefUnwindSafe for EdgeEnd
impl Send for EdgeEnd
impl Sync for EdgeEnd
impl Unpin for EdgeEnd
impl UnsafeUnpin for EdgeEnd
impl UnwindSafe for EdgeEnd
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more