severity

function used to detect vulnerabilities TBD

severity

fn severity(&self) -> IssueSeverity

Definition: https://github.com/Cyfrin/aderyn/blob/dev/aderyn_core/src/detect/detector.rs#L195

Returns the severity level of the issue detected by the implementor of this trait.

Returns:

  • IssueSeverity: The severity of the issue, which could be Low, Medium, or High.

Example

fn severity(&self) -> IssueSeverity {
        IssueSeverity::High
    }

Issue Severity Enum

pub enum IssueSeverity {
    Low,
    High,
}

source: https://github.com/Cyfrin/aderyn/blob/dev/aderyn_core/src/detect/detector.rs#L186

Last updated