pub struct TraceHop {
pub path: PathBuf,
pub line: u32,
pub col: u32,
pub role: TraceHopRole,
}Expand description
One hop in a security finding’s structural trace. Stored as an absolute path
internally; JSON serialization strips the project root via
serde_path::serialize.
Fields§
§path: PathBufFile on this hop of the import chain.
line: u321-based line number. Import-chain hops point at the import site; the terminal secret-source hop points at the source module when extraction does not carry a more precise member-access span.
col: u320-based byte column offset.
role: TraceHopRoleRole of this hop in the chain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TraceHop
impl<'de> Deserialize<'de> for TraceHop
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 Eq for TraceHop
impl StructuralPartialEq for TraceHop
Auto Trait Implementations§
impl Freeze for TraceHop
impl RefUnwindSafe for TraceHop
impl Send for TraceHop
impl Sync for TraceHop
impl Unpin for TraceHop
impl UnsafeUnpin for TraceHop
impl UnwindSafe for TraceHop
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.