pub struct TaintFlow {
pub source: TaintSource,
pub sink: TaintSink,
pub sanitized: bool,
pub propagation_path: Vec<String>,
}Expand description
Represents a complete taint flow from source to sink
Fields§
§source: TaintSource§sink: TaintSink§sanitized: bool§propagation_path: Vec<String>Implementations§
Source§impl TaintFlow
impl TaintFlow
Sourcepub fn to_finding(
&self,
rule_metadata: &RuleMetadata,
function_name: &str,
function_sig: &str,
span: Option<SourceSpan>,
) -> Finding
pub fn to_finding( &self, rule_metadata: &RuleMetadata, function_name: &str, function_sig: &str, span: Option<SourceSpan>, ) -> Finding
Convert this taint flow into a Finding for reporting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaintFlow
impl RefUnwindSafe for TaintFlow
impl Send for TaintFlow
impl Sync for TaintFlow
impl Unpin for TaintFlow
impl UnsafeUnpin for TaintFlow
impl UnwindSafe for TaintFlow
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§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