pub struct AuthAnalysis {
pub msg_sender_checks: usize,
pub tx_origin_checks: usize,
pub has_origin_sender_comparison: bool,
pub summary: String,
}Expand description
Authorization mechanism analysis.
Fields§
§msg_sender_checks: usizeNumber of msg.sender checks found.
tx_origin_checks: usizeNumber of tx.origin checks found (should be 0 ideally).
has_origin_sender_comparison: boolWhether require(tx.origin == msg.sender) pattern is used.
summary: StringSummary of authorization approach.
Trait Implementations§
Source§impl Clone for AuthAnalysis
impl Clone for AuthAnalysis
Source§impl Debug for AuthAnalysis
impl Debug for AuthAnalysis
Source§impl<'de> Deserialize<'de> for AuthAnalysis
impl<'de> Deserialize<'de> for AuthAnalysis
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 AuthAnalysis
impl Freeze for AuthAnalysis
impl RefUnwindSafe for AuthAnalysis
impl Send for AuthAnalysis
impl Sync for AuthAnalysis
impl Unpin for AuthAnalysis
impl UnsafeUnpin for AuthAnalysis
impl UnwindSafe for AuthAnalysis
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