pub struct TaskMetadata {
pub name: String,
pub description: Option<String>,
pub tags: Vec<String>,
pub created_at: SystemTime,
pub estimated_duration: Option<Duration>,
pub priority: TaskPriority,
pub dependencies: Vec<String>,
pub group_id: Option<String>,
pub submitted_by: Option<String>,
pub custom_metadata: HashMap<String, MetadataValue>,
pub retry_config: Option<TaskRetryConfig>,
pub timeout_config: Option<TaskTimeoutConfig>,
}Expand description
Comprehensive task metadata
Contains descriptive information, timing details, and organizational data for tasks to support tracking, debugging, and optimization.
Fields§
§name: StringHuman-readable task name
description: Option<String>Optional task description
Organizational tags for grouping
created_at: SystemTimeTask creation timestamp
estimated_duration: Option<Duration>Estimated execution duration
priority: TaskPriorityTask priority level
dependencies: Vec<String>Task dependencies (IDs of tasks that must complete first)
group_id: Option<String>Task group identifier for batch operations
submitted_by: Option<String>User who submitted the task
custom_metadata: HashMap<String, MetadataValue>Additional custom metadata
retry_config: Option<TaskRetryConfig>Task retry configuration
timeout_config: Option<TaskTimeoutConfig>Task timeout configuration
Trait Implementations§
Source§impl Clone for TaskMetadata
impl Clone for TaskMetadata
Source§fn clone(&self) -> TaskMetadata
fn clone(&self) -> TaskMetadata
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 TaskMetadata
impl Debug for TaskMetadata
Auto Trait Implementations§
impl Freeze for TaskMetadata
impl RefUnwindSafe for TaskMetadata
impl Send for TaskMetadata
impl Sync for TaskMetadata
impl Unpin for TaskMetadata
impl UnwindSafe for TaskMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more