pub struct TaskResultRequestV1 {
pub schema: String,
pub claim: ClaimRefV1,
pub summary: Option<String>,
pub evidence: Vec<EvidenceV1>,
pub draft: Option<DraftProposalV1>,
pub usage: Option<UsageV1>,
pub outcome: Option<TaskOutcome>,
pub gate_record: Option<G6RecordV1>,
}Expand description
POST …/{number}/result: the holder’s result. It ends the claim; a 1.x
Hive turns it into a proposal (origin task), Hive v5 ends the task
(done, or failed with outcome: failed). draft is its knowledge
change, if it brings one, exactly as a regular draft; a failed result
brings none.
Fields§
§schema: String§claim: ClaimRefV1§summary: Option<String>§evidence: Vec<EvidenceV1>§draft: Option<DraftProposalV1>§usage: Option<UsageV1>§outcome: Option<TaskOutcome>Hive v5; absent = completed. A 1.x Hive refuses the field
(unknown fields are denied), so it is sent only to a v5 Hive.
gate_record: Option<G6RecordV1>Process v1 G6: the Instance’s part of the record for the judged
commit (clean locked paths, a green rerun; blocked on the CI pipeline
Hive reads). Sent only for a process task (a task view with
process), so a Hive without process tasks never sees the field.
Implementations§
Source§impl TaskResultRequestV1
impl TaskResultRequestV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for TaskResultRequestV1
impl Clone for TaskResultRequestV1
Source§impl Debug for TaskResultRequestV1
impl Debug for TaskResultRequestV1
Source§impl<'de> Deserialize<'de> for TaskResultRequestV1
impl<'de> Deserialize<'de> for TaskResultRequestV1
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
impl Eq for TaskResultRequestV1
Source§impl PartialEq for TaskResultRequestV1
impl PartialEq for TaskResultRequestV1
Source§impl Serialize for TaskResultRequestV1
impl Serialize for TaskResultRequestV1
impl StructuralPartialEq for TaskResultRequestV1
Auto Trait Implementations§
impl Forget for TaskResultRequestV1
impl Freeze for TaskResultRequestV1
impl Move for TaskResultRequestV1
impl RefUnwindSafe for TaskResultRequestV1
impl Send for TaskResultRequestV1
impl Sync for TaskResultRequestV1
impl Unpin for TaskResultRequestV1
impl UnsafeUnpin for TaskResultRequestV1
impl UnwindSafe for TaskResultRequestV1
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