pub struct WholeTask { /* private fields */ }Expand description
One task as a write’s own response showed it whole: everything an entry of the cache holds, at the version that response determines.
Built only by WholeTask::new, and read back through the same check, so a whole task
always carries a version: one without is not a task a cache can key.
Implementations§
Source§impl WholeTask
impl WholeTask
Sourcepub fn new(
task: Task,
comments: Vec<Comment>,
assets: Vec<Asset>,
edges: Option<Vec<DependencyEdge>>,
) -> Option<Self>
pub fn new( task: Task, comments: Vec<Comment>, assets: Vec<Asset>, edges: Option<Vec<DependencyEdge>>, ) -> Option<Self>
The task whole — its comments, its assets and, when known, its forward edges — or
None for a task without a Task::version.
Sourcepub fn task(&self) -> &Task
pub fn task(&self) -> &Task
The task, its Task::version the version the response determines.
Sourcepub fn edges(&self) -> Option<&[DependencyEdge]>
pub fn edges(&self) -> Option<&[DependencyEdge]>
Its forward dependency edges, when the response carried them whole.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WholeTask
impl<'de> Deserialize<'de> for WholeTask
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 WholeTask
impl JsonSchema for WholeTask
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 WholeTask
Auto Trait Implementations§
impl Forget for WholeTask
impl Freeze for WholeTaskwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Label>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Repository>: Freeze,
PhantomData<TaskRef>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Comment>: Freeze,
PhantomData<Asset>: Freeze,
PhantomData<DependencyEdge>: Freeze,
impl Move for WholeTask
impl RefUnwindSafe for WholeTask
impl Send for WholeTask
impl Sync for WholeTask
impl Unpin for WholeTask
impl UnsafeUnpin for WholeTaskwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Label>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Repository>: UnsafeUnpin,
PhantomData<TaskRef>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Comment>: UnsafeUnpin,
PhantomData<Asset>: UnsafeUnpin,
PhantomData<DependencyEdge>: UnsafeUnpin,
impl UnwindSafe for WholeTaskwhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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