-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(notifications): add Email as new notification channel
- Loading branch information
1 parent
9d78455
commit e7cccee
Showing
6 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
use thiserror::Error; | ||
|
||
use super::lettre::error::LettreError; | ||
use crate::user_notification_settings::error::*; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum EmailExecutorError { | ||
#[error("EmailExecutorError - Lettre error: {0}")] | ||
#[error("EmailExecutorError - LettreError: {0}")] | ||
LettreError(#[from] LettreError), | ||
#[error("EmailExecutorError - UserNotificationSettingsError: {0}")] | ||
UserNotificationSettingsError(#[from] UserNotificationSettingsError), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters