pub struct Task {
pub id: String,
pub user_id: String,
pub act_id: String,
pub name: String,
pub username: Option<String>,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
pub removed_at: Option<DateTime<Utc>>,
pub stats: Option<TaskStats>,
pub options: Option<TaskOptions>,
pub input: Option<Value>,
pub title: Option<String>,
}Expand description
A saved configuration for running an Actor.
Tasks let you freeze an Actor ID, input JSON, and run options so you can launch the same job repeatedly without resending the full input. They are the preferred way to schedule or automate recurring work.
Fields§
§id: String§user_id: String§act_id: String§name: String§username: Option<String>§created_at: DateTime<Utc>§modified_at: DateTime<Utc>§removed_at: Option<DateTime<Utc>>§stats: Option<TaskStats>§options: Option<TaskOptions>§input: Option<Value>The JSON input that will be passed to the Actor on every run.
Use a typed struct for a specific Actor instead of serde_json::Value
when you know the schema.
title: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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 Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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