pub enum Shown {
Nothing,
Version {
version: String,
},
Whole {
task: Box<WholeTask>,
},
}Expand description
What one response showed of the task a write left behind.
One value rather than a version beside an optional whole task, so a whole task always
carries the version it is at: Shown::Whole’s own task.version.
Variants§
Nothing
Nothing that determines the task’s version.
Version
The task’s version, and not every part an entry holds at it.
Whole
The whole task, every part an entry holds, at its own task.version — never built for
a task without one.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shown
impl<'de> Deserialize<'de> for Shown
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 Shown
impl JsonSchema for Shown
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 moreimpl StructuralPartialEq for Shown
Auto Trait Implementations§
impl Freeze for Shown
impl RefUnwindSafe for Shown
impl Send for Shown
impl Sync for Shown
impl Unpin for Shown
impl UnsafeUnpin for Shown
impl UnwindSafe for Shown
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