pub struct DependencyJson {
pub file: String,
pub required_by: String,
pub origin: Option<String>,
}Expand description
What a dependency’s diagnostic carries besides its text: the file that required it
and where the file lives. Stored with the diagnostic (Recorded) so a replay says
exactly what the run said, and decides the same way whether to say it.
Fields§
§file: StringThe file the error is in, as the checker found it.
required_by: StringThe file whose require pulled it in — which is the one the reader is looking at,
and so the one a message about somebody else’s file has to name.
origin: Option<String>dependency / external, or none for a file of the project’s own.
Trait Implementations§
Source§impl Clone for DependencyJson
impl Clone for DependencyJson
Source§fn clone(&self) -> DependencyJson
fn clone(&self) -> DependencyJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DependencyJson
impl Debug for DependencyJson
Source§impl<'de> Deserialize<'de> for DependencyJson
impl<'de> Deserialize<'de> for DependencyJson
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 DependencyJson
impl RefUnwindSafe for DependencyJson
impl Send for DependencyJson
impl Sync for DependencyJson
impl Unpin for DependencyJson
impl UnsafeUnpin for DependencyJson
impl UnwindSafe for DependencyJson
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