pub struct SecurityDeadCodeContext {
pub kind: SecurityDeadCodeKind,
pub export_name: Option<String>,
pub line: Option<u32>,
pub guidance: String,
}Expand description
Dead-code cross-link attached to a security candidate when fallow’s dead-code pass reports the same anchor as removable code.
Fields§
§kind: SecurityDeadCodeKindDead-code issue kind that matched the security candidate.
export_name: Option<String>Unused export name when kind is unused-export.
line: Option<u32>Dead-code finding line when available.
guidance: StringAgent-facing guidance for deciding between deletion and hardening.
Trait Implementations§
Source§impl Clone for SecurityDeadCodeContext
impl Clone for SecurityDeadCodeContext
Source§impl Debug for SecurityDeadCodeContext
impl Debug for SecurityDeadCodeContext
Source§impl<'de> Deserialize<'de> for SecurityDeadCodeContext
impl<'de> Deserialize<'de> for SecurityDeadCodeContext
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 SecurityDeadCodeContext
Source§impl PartialEq for SecurityDeadCodeContext
impl PartialEq for SecurityDeadCodeContext
Source§impl Serialize for SecurityDeadCodeContext
impl Serialize for SecurityDeadCodeContext
impl StructuralPartialEq for SecurityDeadCodeContext
Auto Trait Implementations§
impl Freeze for SecurityDeadCodeContext
impl RefUnwindSafe for SecurityDeadCodeContext
impl Send for SecurityDeadCodeContext
impl Sync for SecurityDeadCodeContext
impl Unpin for SecurityDeadCodeContext
impl UnsafeUnpin for SecurityDeadCodeContext
impl UnwindSafe for SecurityDeadCodeContext
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.