pub async fn set_event(template: EventTemplate, pool: &SqlitePool) -> Result<()>Expand description
Create a delayed, recurring or direct notification.
§Parameters
template: Structure that defines a new eventpool: Optional instance of a Sqlite database pool
§Errors
Possible errors are:
- an invalid connection to the database
- unable to access the sound output device
- An invalid input date, which is either not in the format of YYYY-mm-ddTHH:MM or smaller than now
- An invalid duration value for the
--waitargument - An incorrect cron string