pub struct ScheduleJob {
pub id: String,
pub name: String,
pub bot_id: String,
pub prompt: String,
pub cron: String,
pub time_zone: String,
pub enabled: bool,
pub next_run_at: Option<String>,
pub last_run_at: Option<String>,
}Expand description
A saved schedule.
Fields§
§id: String§name: String§bot_id: String§prompt: String§cron: String§time_zone: String§enabled: bool§next_run_at: Option<String>§last_run_at: Option<String>Trait Implementations§
Source§impl Clone for ScheduleJob
impl Clone for ScheduleJob
Source§impl Debug for ScheduleJob
impl Debug for ScheduleJob
Source§impl<'de> Deserialize<'de> for ScheduleJob
impl<'de> Deserialize<'de> for ScheduleJob
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 ScheduleJob
impl RefUnwindSafe for ScheduleJob
impl Send for ScheduleJob
impl Sync for ScheduleJob
impl Unpin for ScheduleJob
impl UnsafeUnpin for ScheduleJob
impl UnwindSafe for ScheduleJob
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