pub struct TaskUpdateOutcome {
pub task: Task,
pub written: BTreeSet<UpdatedField>,
pub delivers_before: Vec<TaskRef>,
}Expand description
What a source answers a TaskUpdate of a task it holds with.
Everything the engine reports about the call is read off this, so the engine sends no read
of its own before or after it: task is what it answers with, written is what it says
was written, and delivers_before is what tells it which delivered tasks the update
dropped.
Fields§
§task: TaskThe task as this source reads it once the update landed.
written: BTreeSet<UpdatedField>The fields this source actually wrote — empty when nothing differed, and never a field the update did not name. Required on the wire: an answer that leaves it out has not said what it wrote, which is not the same as having written nothing.
delivers_before: Vec<TaskRef>The task’s Task::delivers as this source held it before the update, which is the
list a named delivers replaced. Required on the wire, for the reason written is: an
answer leaving it out would hide every delivered task the update dropped.
Trait Implementations§
Source§impl Clone for TaskUpdateOutcome
impl Clone for TaskUpdateOutcome
Source§impl Debug for TaskUpdateOutcome
impl Debug for TaskUpdateOutcome
Source§impl<'de> Deserialize<'de> for TaskUpdateOutcome
impl<'de> Deserialize<'de> for TaskUpdateOutcome
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 TaskUpdateOutcome
impl JsonSchema for TaskUpdateOutcome
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