> For the complete documentation index, see [llms.txt](https://cyfrin.gitbook.io/cyfrin-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cyfrin.gitbook.io/cyfrin-docs/internals/detectors-quickstart/detectors-api-reference/severity.md).

# severity

function used to detect vulnerabilities TBD

**`severity`**

```rust
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

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

#### Issue Severity Enum

```rust
pub enum IssueSeverity {
    Low,
    High,
}
```

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