pub struct ObligationForecast {
pub obligation_id: ContractId,
pub label: String,
pub deadline: Option<DateTime<Utc>>,
pub time_remaining_secs: Option<i64>,
pub estimated_effort_minutes: u32,
pub depends_on: Vec<ContractId>,
pub miss_risk: f64,
}Expand description
A forecast for a single obligation.
Fields§
§obligation_id: ContractIdObligation ID.
label: StringObligation label.
deadline: Option<DateTime<Utc>>Deadline.
time_remaining_secs: Option<i64>Time remaining in seconds.
estimated_effort_minutes: u32Estimated fulfillment effort in minutes.
depends_on: Vec<ContractId>Dependencies on other obligations.
miss_risk: f64Risk of missing deadline (0.0-1.0).
Trait Implementations§
Source§impl Clone for ObligationForecast
impl Clone for ObligationForecast
Source§fn clone(&self) -> ObligationForecast
fn clone(&self) -> ObligationForecast
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObligationForecast
impl Debug for ObligationForecast
Source§impl<'de> Deserialize<'de> for ObligationForecast
impl<'de> Deserialize<'de> for ObligationForecast
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
Auto Trait Implementations§
impl Freeze for ObligationForecast
impl RefUnwindSafe for ObligationForecast
impl Send for ObligationForecast
impl Sync for ObligationForecast
impl Unpin for ObligationForecast
impl UnsafeUnpin for ObligationForecast
impl UnwindSafe for ObligationForecast
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