pub enum DurationSource {
UserEstimate,
Historical {
sample_count: u32,
},
Predicted {
model: String,
confidence: f64,
},
Default,
}Expand description
Source of a duration estimate.
Variants§
UserEstimate
User provided the estimate.
Historical
Derived from historical data.
Predicted
AI predicted.
Default
Default/fallback.
Trait Implementations§
Source§impl Clone for DurationSource
impl Clone for DurationSource
Source§fn clone(&self) -> DurationSource
fn clone(&self) -> DurationSource
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 DurationSource
impl Debug for DurationSource
Source§impl<'de> Deserialize<'de> for DurationSource
impl<'de> Deserialize<'de> for DurationSource
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 DurationSource
impl RefUnwindSafe for DurationSource
impl Send for DurationSource
impl Sync for DurationSource
impl Unpin for DurationSource
impl UnsafeUnpin for DurationSource
impl UnwindSafe for DurationSource
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