pub enum NotifyTarget {
Webhook {
url: String,
},
Telegram {
bot_token: String,
chat_id: String,
},
ExpoPush {
token: String,
},
Email {
to: String,
},
}Expand description
A notification destination (per-monitor or node-level policy-alert channel).
Variants§
Webhook
Generic JSON POST. Works with Slack/Discord incoming webhooks and any
HTTP endpoint. We send both a Slack/Discord-friendly text/content
field and the structured alert so one URL fits most services.
Telegram
Direct Telegram Bot API send (sendMessage).
ExpoPush
A specific Expo push token (in addition to globally-registered devices).
A single email recipient. Unlike the self-contained Webhook/Telegram
targets, this carries the recipient ONLY: the SMTP transport is a shared
node resource resolved once at the Core call site (ryu_email_send), not
stored per-target, so the plaintext-secret surface is not multiplied.
Trait Implementations§
Source§impl Clone for NotifyTarget
impl Clone for NotifyTarget
Source§fn clone(&self) -> NotifyTarget
fn clone(&self) -> NotifyTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotifyTarget
impl Debug for NotifyTarget
Source§impl<'de> Deserialize<'de> for NotifyTarget
impl<'de> Deserialize<'de> for NotifyTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NotifyTarget
impl PartialEq for NotifyTarget
Source§impl Serialize for NotifyTarget
impl Serialize for NotifyTarget
impl StructuralPartialEq for NotifyTarget
Auto Trait Implementations§
impl Freeze for NotifyTarget
impl RefUnwindSafe for NotifyTarget
impl Send for NotifyTarget
impl Sync for NotifyTarget
impl Unpin for NotifyTarget
impl UnsafeUnpin for NotifyTarget
impl UnwindSafe for NotifyTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more