#[non_exhaustive]pub struct BackgroundTask {
pub task_id: String,
pub run_id: Option<String>,
pub task_type: String,
pub subagent_type: Option<String>,
pub description: String,
pub parent_task_id: Option<String>,
pub ambient: Option<bool>,
pub awaited: Option<bool>,
pub off_host: Option<bool>,
}Expand description
One entry of a background_tasks_changed snapshot.
Source: binary background_tasks_changed schema
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.task_id: StringTask id.
run_id: Option<String>Id of one run of the task; a resumed task gets a new one.
task_type: String“local_bash” | “local_agent” | “local_workflow” | …
subagent_type: Option<String>Agent type of a local_agent task.
description: StringTask description.
parent_task_id: Option<String>Task id of the subagent that launched this task.
ambient: Option<bool>Not activity; exclude from activity indicators.
awaited: Option<bool>A resumed subagent run that the resuming tool call waits for.
off_host: Option<bool>The task’s work goes on outside this process.
Trait Implementations§
Source§impl Clone for BackgroundTask
impl Clone for BackgroundTask
Source§impl Debug for BackgroundTask
impl Debug for BackgroundTask
Source§impl<'de> Deserialize<'de> for BackgroundTask
impl<'de> Deserialize<'de> for BackgroundTask
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 Forget for BackgroundTask
impl Freeze for BackgroundTask
impl Move for BackgroundTask
impl RefUnwindSafe for BackgroundTask
impl Send for BackgroundTask
impl Sync for BackgroundTask
impl Unpin for BackgroundTask
impl UnsafeUnpin for BackgroundTask
impl UnwindSafe for BackgroundTask
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