pub struct MarkStatusRequest {
pub plan_id: PlanId,
pub deliverable_id: String,
pub caller_id: CallerId,
pub status: DeliverableStatus,
pub earned_pct: Option<u8>,
pub actual_effort_hours: Option<f32>,
pub evidence: Option<String>,
}Expand description
Request bundle for crate::ports::Planner::mark_status.
The optional progress fields feed earned value and are validated as
INVALID_ACTUALS: earned_pct is 0..=100 and only accepted with
InProgress (with Complete it is accepted and ignored),
actual_effort_hours is finite and in 0..=MAX_HOURS, and
evidence is at most MAX_EVIDENCE_CHARS characters, with at most
MAX_EVIDENCE_ENTRIES kept per deliverable.
Fields§
§plan_id: PlanId§deliverable_id: String§caller_id: CallerId§status: DeliverableStatus§earned_pct: Option<u8>Reported percent complete; replaces the stored value.
actual_effort_hours: Option<f32>Reported total effort so far, in hours; replaces the stored value and takes precedence over leased hours for actual cost.
evidence: Option<String>One evidence note, appended to the deliverable’s evidence list.
Implementations§
Source§impl MarkStatusRequest
impl MarkStatusRequest
pub fn new( plan_id: PlanId, deliverable_id: impl Into<String>, caller_id: CallerId, status: DeliverableStatus, ) -> Self
Sourcepub fn with_earned_pct(self, pct: u8) -> Self
pub fn with_earned_pct(self, pct: u8) -> Self
Report the percent complete (0..=100).
Sourcepub fn with_actual_effort_hours(self, hours: f32) -> Self
pub fn with_actual_effort_hours(self, hours: f32) -> Self
Report the total effort spent so far, in hours.
Sourcepub fn with_evidence(self, evidence: impl Into<String>) -> Self
pub fn with_evidence(self, evidence: impl Into<String>) -> Self
Append one evidence note.
Trait Implementations§
Source§impl Clone for MarkStatusRequest
impl Clone for MarkStatusRequest
Auto Trait Implementations§
impl Freeze for MarkStatusRequest
impl RefUnwindSafe for MarkStatusRequest
impl Send for MarkStatusRequest
impl Sync for MarkStatusRequest
impl Unpin for MarkStatusRequest
impl UnsafeUnpin for MarkStatusRequest
impl UnwindSafe for MarkStatusRequest
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