pub struct Notification {
pub event: NotifyEvent,
pub title: String,
pub message: String,
pub url: Option<String>,
pub priority: Priority,
pub jobs: Vec<JobSummary>,
pub runners: Vec<RunnerFailure>,
pub insights: Vec<Insight>,
pub digest: Option<Digest>,
}Expand description
What a webhook target is posted, as JSON; an ntfy target gets its title, message, priority and link.
Fields§
§event: NotifyEventWhat it is about.
title: StringOne short line.
message: StringA few lines.
url: Option<String>What to open: a job’s page on GitHub, or nothing.
priority: PriorityHow urgent.
jobs: Vec<JobSummary>The jobs it is about: failed or lost.
runners: Vec<RunnerFailure>The runners that could not start.
insights: Vec<Insight>The insights it is about.
digest: Option<Digest>The digest.
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§impl Debug for Notification
impl Debug for Notification
Source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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
impl Eq for Notification
Source§impl PartialEq for Notification
impl PartialEq for Notification
Source§impl Serialize for Notification
impl Serialize for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnsafeUnpin for Notification
impl UnwindSafe for Notification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.