pub struct TaskResultRequestV1 {
pub schema: String,
pub claim: ClaimRefV1,
pub summary: Option<String>,
pub evidence: Vec<EvidenceV1>,
pub draft: Option<DraftProposalV1>,
pub sealed: Option<SealedBlobV1>,
pub usage: Option<UsageV1>,
pub outcome: Option<TaskOutcome>,
}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 (sealed rules
included); a failed result brings none.
Fields§
§schema: String§claim: ClaimRefV1§summary: Option<String>§evidence: Vec<EvidenceV1>§draft: Option<DraftProposalV1>§sealed: Option<SealedBlobV1>§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.
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 Freeze 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