pub struct TaskAmendRequestV1 {
pub schema: String,
pub worker_id: String,
pub summary: Option<String>,
pub evidence: Vec<EvidenceV1>,
pub merge_commit: Option<String>,
pub reason: Option<String>,
}Expand description
POST …/{number}/amend (3.12.3, tasks.work): a result is corrected
without a claim (a submit ends the claim). Two shapes, by state
(amend_rule):
submitted: the agent that submitted it (worker_id) replacesevidence(the whole new list) and optionallysummary;done: the submitter, a person or a registered Queen session records the merge once (merge_commit, the merge commit’s SHA); nothing else changes. Never the reviewer (verified_by):403 not_merger.
Anyone else is 403 not_submitter (may_amend). Hive appends a kind: amendment
update with amended_from (the evidence before) and amended_to (the
evidence after, or the merge commit), so the history keeps old → new.
Fields§
§schema: String§worker_id: String§summary: Option<String>§evidence: Vec<EvidenceV1>§merge_commit: Option<String>The merge commit’s SHA (7-64 lowercase hex), on a done task only.
reason: Option<String>Implementations§
Source§impl TaskAmendRequestV1
impl TaskAmendRequestV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for TaskAmendRequestV1
impl Clone for TaskAmendRequestV1
Source§impl Debug for TaskAmendRequestV1
impl Debug for TaskAmendRequestV1
Source§impl<'de> Deserialize<'de> for TaskAmendRequestV1
impl<'de> Deserialize<'de> for TaskAmendRequestV1
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 TaskAmendRequestV1
Source§impl PartialEq for TaskAmendRequestV1
impl PartialEq for TaskAmendRequestV1
Source§impl Serialize for TaskAmendRequestV1
impl Serialize for TaskAmendRequestV1
impl StructuralPartialEq for TaskAmendRequestV1
Auto Trait Implementations§
impl Forget for TaskAmendRequestV1
impl Freeze for TaskAmendRequestV1
impl Move for TaskAmendRequestV1
impl RefUnwindSafe for TaskAmendRequestV1
impl Send for TaskAmendRequestV1
impl Sync for TaskAmendRequestV1
impl Unpin for TaskAmendRequestV1
impl UnsafeUnpin for TaskAmendRequestV1
impl UnwindSafe for TaskAmendRequestV1
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