pub struct CronPayload {
pub kind: PayloadKind,
pub message: String,
pub deliver: bool,
pub channel: Option<String>,
pub to: Option<String>,
}Expand description
Payload executed when a cron job fires.
Fields§
§kind: PayloadKindThe type of payload.
message: StringMessage to deliver or use as agent prompt.
deliver: boolWhether to deliver the response to a channel.
channel: Option<String>Target channel name (e.g. "whatsapp").
to: Option<String>Target recipient (e.g. phone number, user ID).
Trait Implementations§
Source§impl Clone for CronPayload
impl Clone for CronPayload
Source§fn clone(&self) -> CronPayload
fn clone(&self) -> CronPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 CronPayload
impl Debug for CronPayload
Source§impl Default for CronPayload
impl Default for CronPayload
Source§impl<'de> Deserialize<'de> for CronPayload
impl<'de> Deserialize<'de> for CronPayload
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 CronPayload
impl RefUnwindSafe for CronPayload
impl Send for CronPayload
impl Sync for CronPayload
impl Unpin for CronPayload
impl UnsafeUnpin for CronPayload
impl UnwindSafe for CronPayload
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