pub enum DeliveryOutcome {
Written {
from: StatusCategory,
to: StatusCategory,
},
Unchanged {
from: StatusCategory,
},
Left {
from: StatusCategory,
},
Failed {
from: Option<StatusCategory>,
failure: Failure,
},
}Expand description
The four things re-evaluating a delivered task can come to, and the categories each is about.
Variants§
Written
Its status was written.
Unchanged
The rule asked for what it already holds, or for nothing at all.
Fields
§
from: StatusCategoryThe category it read.
Left
It is at draft, backlog, unknown, done or cancelled, which a claim never
accepts, reopens or un-defers on a person’s behalf.
Fields
§
from: StatusCategoryThe category it read.
Failed
It, or a deliverer it names, could not be read or written; the rule did not guess.
Fields
§
from: Option<StatusCategory>The category it read, when it could be read.
Trait Implementations§
Source§impl Clone for DeliveryOutcome
impl Clone for DeliveryOutcome
Source§fn clone(&self) -> DeliveryOutcome
fn clone(&self) -> DeliveryOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeliveryOutcome
impl Debug for DeliveryOutcome
Source§impl<'de> Deserialize<'de> for DeliveryOutcome
impl<'de> Deserialize<'de> for DeliveryOutcome
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
Source§impl JsonSchema for DeliveryOutcome
impl JsonSchema for DeliveryOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DeliveryOutcome
impl PartialEq for DeliveryOutcome
Source§impl Serialize for DeliveryOutcome
impl Serialize for DeliveryOutcome
impl StructuralPartialEq for DeliveryOutcome
Auto Trait Implementations§
impl Freeze for DeliveryOutcome
impl RefUnwindSafe for DeliveryOutcome
impl Send for DeliveryOutcome
impl Sync for DeliveryOutcome
impl Unpin for DeliveryOutcome
impl UnsafeUnpin for DeliveryOutcome
impl UnwindSafe for DeliveryOutcome
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