Struct ll::task_tree::TaskInternal

source ·
pub struct TaskInternal {
    pub id: UniqID,
    pub name: String,
    pub parent_names: Vec<String>,
    pub started_at: SystemTime,
    pub status: TaskStatus,
    pub data: Data,
    pub data_transitive: Data,
    pub tags: BTreeSet<String>,
    pub progress: Option<(i64, i64)>,
    pub hide_errors: Option<Arc<String>>,
    pub attach_transitive_data_to_errors: bool,
}

Fields

id: UniqIDname: Stringparent_names: Vec<String>started_at: SystemTimestatus: TaskStatusdata: Datadata_transitive: Datatags: BTreeSet<String>progress: Option<(i64, i64)>

optional tuple containing values indicating task progress, where first value is how many items finished and the second value is how many items there are total. E.g. if it’s a task processing 10 pieces of work, (1, 10) would mean that 1 out of ten pieces is done.

hide_errors: Option<Arc<String>>attach_transitive_data_to_errors: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.