pub struct SecurityRuntimeContext {
pub state: SecurityRuntimeState,
pub function: String,
pub line: u32,
pub invocations: Option<u64>,
pub stable_id: Option<String>,
pub evidence: Option<String>,
}Expand description
Runtime coverage context attached to a security candidate when
fallow security --runtime-coverage is supplied.
Fields§
§state: SecurityRuntimeStateRuntime state for the enclosing function.
function: StringEnclosing function name from static extraction.
line: u321-based line where the enclosing function starts.
invocations: Option<u64>Observed invocation count when the runtime report provides it.
stable_id: Option<String>Runtime coverage stable function id, when available.
evidence: Option<String>Short candidate-framed explanation of the runtime evidence.
Trait Implementations§
Source§impl Clone for SecurityRuntimeContext
impl Clone for SecurityRuntimeContext
Source§impl Debug for SecurityRuntimeContext
impl Debug for SecurityRuntimeContext
Source§impl<'de> Deserialize<'de> for SecurityRuntimeContext
impl<'de> Deserialize<'de> for SecurityRuntimeContext
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 SecurityRuntimeContext
Source§impl PartialEq for SecurityRuntimeContext
impl PartialEq for SecurityRuntimeContext
Source§impl Serialize for SecurityRuntimeContext
impl Serialize for SecurityRuntimeContext
impl StructuralPartialEq for SecurityRuntimeContext
Auto Trait Implementations§
impl Freeze for SecurityRuntimeContext
impl RefUnwindSafe for SecurityRuntimeContext
impl Send for SecurityRuntimeContext
impl Sync for SecurityRuntimeContext
impl Unpin for SecurityRuntimeContext
impl UnsafeUnpin for SecurityRuntimeContext
impl UnwindSafe for SecurityRuntimeContext
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.