pub struct SecurityMetadata {
pub external_calls: Vec<ExternalCallSite>,
pub state_mutations: Vec<StateMutation>,
pub reentrancy_guards: Vec<ReentrancyGuard>,
pub access_controls: Vec<AccessControl>,
pub checked_operations: Vec<CheckedOp>,
pub vulnerability_patterns: Vec<VulnerabilityPattern>,
}Fields§
§external_calls: Vec<ExternalCallSite>§state_mutations: Vec<StateMutation>§reentrancy_guards: Vec<ReentrancyGuard>§access_controls: Vec<AccessControl>§checked_operations: Vec<CheckedOp>§vulnerability_patterns: Vec<VulnerabilityPattern>Implementations§
Source§impl SecurityMetadata
impl SecurityMetadata
pub fn has_high_risk_patterns(&self) -> bool
pub fn state_modifying_functions(&self) -> HashSet<String>
Trait Implementations§
Source§impl Clone for SecurityMetadata
impl Clone for SecurityMetadata
Source§fn clone(&self) -> SecurityMetadata
fn clone(&self) -> SecurityMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityMetadata
impl Debug for SecurityMetadata
Source§impl Default for SecurityMetadata
impl Default for SecurityMetadata
Source§fn default() -> SecurityMetadata
fn default() -> SecurityMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecurityMetadata
impl<'de> Deserialize<'de> for SecurityMetadata
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
Auto Trait Implementations§
impl Freeze for SecurityMetadata
impl RefUnwindSafe for SecurityMetadata
impl Send for SecurityMetadata
impl Sync for SecurityMetadata
impl Unpin for SecurityMetadata
impl UnsafeUnpin for SecurityMetadata
impl UnwindSafe for SecurityMetadata
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