Skip to main content

alert

Attribute Macro alert 

Source
#[alert]
Expand description

Creates an Alert struct that implements Display and From for multiple error types.

Usage:

#[alert(errors = [MyError, AnotherError])]
pub struct Alert {
    message: String,
}