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 Freeze for WholeTask
impl RefUnwindSafe for WholeTask
impl Send for WholeTask
impl Sync for WholeTask
impl Unpin for WholeTask
impl UnsafeUnpin for WholeTask
impl UnwindSafe for WholeTask
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