pub struct Cron {
pub cron_id: Uuid,
pub assistant_id: Option<Option<Uuid>>,
pub thread_id: Uuid,
pub end_time: String,
pub schedule: String,
pub created_at: String,
pub updated_at: String,
pub user_id: Option<Option<String>>,
pub payload: Value,
pub next_run_date: Option<Option<String>>,
pub metadata: Option<Value>,
}Expand description
Cron : Represents a scheduled task.
Fields§
§cron_id: UuidThe ID of the cron.
assistant_id: Option<Option<Uuid>>The ID of the assistant.
thread_id: UuidThe ID of the thread.
end_time: StringThe end date to stop running the cron.
schedule: StringThe schedule to run, cron format.
created_at: StringThe time the cron was created.
updated_at: StringThe last time the cron was updated.
user_id: Option<Option<String>>The ID of the user.
payload: ValueThe run payload to use for creating new run.
next_run_date: Option<Option<String>>The next run date of the cron.
metadata: Option<Value>The cron metadata.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cron
impl<'de> Deserialize<'de> for Cron
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 StructuralPartialEq for Cron
Auto Trait Implementations§
impl Freeze for Cron
impl RefUnwindSafe for Cron
impl Send for Cron
impl Sync for Cron
impl Unpin for Cron
impl UnwindSafe for Cron
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