pub struct TraceHop {
pub path: PathBuf,
pub line: u32,
pub col: u32,
pub role: TraceHopRole,
pub secret_reads: Vec<TraceSecretRead>,
}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. A
secret-source hop points at the first secret read of the module, and
a client-server-leak sink hop at its first server-only import.
col: u320-based byte column offset.
role: TraceHopRoleRole of this hop in the chain.
secret_reads: Vec<TraceSecretRead>Every non-public env read that makes this module a secret source, in
source order. Present only on a secret-source hop; the hop line and
col equal the first entry.
Implementations§
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 Forget for TraceHop
impl Freeze for TraceHop
impl Move for TraceHop
impl RefUnwindSafe for TraceHop
impl Send for TraceHopwhere
RawVecInner: Send,
impl Sync for TraceHopwhere
RawVecInner: Sync,
impl Unpin for TraceHop
impl UnsafeUnpin for TraceHopwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TraceSecretRead>: UnsafeUnpin,
impl UnwindSafe for TraceHopwhere
RawVecInner: UnwindSafe,
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.