pub enum FieldTaint {
Clean,
Tainted {
source_type: String,
source_location: String,
},
Sanitized {
sanitizer: String,
},
Unknown,
}Expand description
Taint state for a field or variable
Variants§
Clean
Field is clean (not tainted)
Tainted
Field is tainted from a source
Sanitized
Field was sanitized
Unknown
Unknown state (not yet analyzed)
Implementations§
Source§impl FieldTaint
impl FieldTaint
Sourcepub fn is_tainted(&self) -> bool
pub fn is_tainted(&self) -> bool
Check if taint state is tainted
Sourcepub fn is_sanitized(&self) -> bool
pub fn is_sanitized(&self) -> bool
Check if taint state is sanitized
Trait Implementations§
Source§impl Clone for FieldTaint
impl Clone for FieldTaint
Source§fn clone(&self) -> FieldTaint
fn clone(&self) -> FieldTaint
Returns a duplicate of the value. Read more
1.0.0 · 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 FieldTaint
impl Debug for FieldTaint
Source§impl PartialEq for FieldTaint
impl PartialEq for FieldTaint
impl StructuralPartialEq for FieldTaint
Auto Trait Implementations§
impl Freeze for FieldTaint
impl RefUnwindSafe for FieldTaint
impl Send for FieldTaint
impl Sync for FieldTaint
impl Unpin for FieldTaint
impl UnsafeUnpin for FieldTaint
impl UnwindSafe for FieldTaint
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