Cyfrin

severity

Define the severity level of the issue

severity

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