pub struct AccessControlMap {
pub ownership_pattern: Option<String>,
pub has_renounced_ownership: bool,
pub has_role_based_access: bool,
pub uses_tx_origin: bool,
pub tx_origin_locations: Vec<SourceLocation>,
pub modifiers: Vec<AccessModifier>,
pub privileged_functions: Vec<PrivilegedFunction>,
pub roles: Vec<String>,
pub auth_analysis: AuthAnalysis,
}Expand description
Complete access control analysis for a contract.
Fields§
§ownership_pattern: Option<String>Owner address pattern (if Ownable).
has_renounced_ownership: boolWhether ownership has been renounced.
has_role_based_access: boolWhether role-based access control is used.
uses_tx_origin: boolWhether tx.origin is used for authorization (dangerous).
tx_origin_locations: Vec<SourceLocation>tx.origin usage locations.
modifiers: Vec<AccessModifier>Detected custom access modifiers.
privileged_functions: Vec<PrivilegedFunction>Functions with access restrictions.
roles: Vec<String>Defined roles (AccessControl pattern).
auth_analysis: AuthAnalysismsg.sender vs tx.origin comparison.
Trait Implementations§
Source§impl Clone for AccessControlMap
impl Clone for AccessControlMap
Source§impl Debug for AccessControlMap
impl Debug for AccessControlMap
Source§impl<'de> Deserialize<'de> for AccessControlMap
impl<'de> Deserialize<'de> for AccessControlMap
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 Forget for AccessControlMap
impl Freeze for AccessControlMap
impl RefUnwindSafe for AccessControlMap
impl Send for AccessControlMap
impl Sync for AccessControlMap
impl Unpin for AccessControlMap
impl UnsafeUnpin for AccessControlMap
impl UnwindSafe for AccessControlMap
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