pub struct NewNotification {
pub dag_id: String,
pub channel: String,
pub kind: String,
pub url: Option<String>,
pub event: String,
pub body: Value,
}Expand description
A notification to queue.
Fields§
§dag_id: StringThe DAG it is about.
channel: StringThe channel’s name.
kind: StringHow it is sent: webhook (the body is posted) or email (the body holds the email).
url: Option<String>A DAG webhook’s URL; None for a server channel, looked up when it is sent.
event: StringThe event’s name (RUN_FAILED, MESSAGE).
body: ValueThe JSON to post, filled in.
Trait Implementations§
Source§impl Clone for NewNotification
impl Clone for NewNotification
Source§fn clone(&self) -> NewNotification
fn clone(&self) -> NewNotification
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 NewNotification
impl Debug for NewNotification
impl Eq for NewNotification
Source§impl PartialEq for NewNotification
impl PartialEq for NewNotification
impl StructuralPartialEq for NewNotification
Auto Trait Implementations§
impl Freeze for NewNotification
impl RefUnwindSafe for NewNotification
impl Send for NewNotification
impl Sync for NewNotification
impl Unpin for NewNotification
impl UnsafeUnpin for NewNotification
impl UnwindSafe for NewNotification
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more