pub struct TaskDetail {
pub response: QueryResponse<Qualified<Task>>,
pub comments: Option<Vec<Comment>>,
pub assets: Option<Vec<Asset>>,
}Expand description
One task as task show reports it: the response every show verb answers with, and the
task’s comments beside it.
The response is flattened rather than nested, so a reader of task show --json written
before comments existed reads exactly the members it read before.
Fields§
§response: QueryResponse<Qualified<Task>>The task, its plan and any failure, exactly as Engine::task answers.
comments: Option<Vec<Comment>>The task’s comments, oldest first, for a source whose tasks have comments.
Absent rather than empty for a source declaring none, for a task that was not
found, and for a task whose comments could not be read — the last with the failure in
the response’s errors, a source refusing the read (a GitHub draft, which has none)
included, so showing such a task is a partial answer that says why. An empty list says
the source has comments and this task holds none, which is a different thing to tell a
reader.
assets: Option<Vec<Asset>>The image assets the task holds, in the order its content first references them —
[] for a task that holds none.
Absent for a task that was not found, and for one whose assets could not be read —
the failure then in the response’s errors.
Trait Implementations§
Source§impl Clone for TaskDetail
impl Clone for TaskDetail
Source§impl Debug for TaskDetail
impl Debug for TaskDetail
Source§impl<'de> Deserialize<'de> for TaskDetail
impl<'de> Deserialize<'de> for TaskDetail
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>,
Source§impl JsonSchema for TaskDetail
impl JsonSchema for TaskDetail
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more