pub struct NotifySource {
pub channel: NotifyChannel,
pub template: String,
pub job_ref: Option<Ulid>,
}Expand description
Source for Job::Notify — cascade external notification.
JobClass::System — triggered via await_jobs OnDone/OnFailed.
Fields§
§channel: NotifyChannelNotification channel.
template: StringMessage template with variables (e.g. "Job {{job_kind}} done: {{notes_created}} notes").
job_ref: Option<Ulid>Job whose completion is being notified.
Trait Implementations§
Source§impl Clone for NotifySource
impl Clone for NotifySource
Source§fn clone(&self) -> NotifySource
fn clone(&self) -> NotifySource
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 NotifySource
impl Debug for NotifySource
Source§impl<'de> Deserialize<'de> for NotifySource
impl<'de> Deserialize<'de> for NotifySource
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
Auto Trait Implementations§
impl Freeze for NotifySource
impl RefUnwindSafe for NotifySource
impl Send for NotifySource
impl Sync for NotifySource
impl Unpin for NotifySource
impl UnsafeUnpin for NotifySource
impl UnwindSafe for NotifySource
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