pub struct TrialSpan {
pub trial_id: String,
pub state: String,
pub started_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub duration_ms: Option<u64>,
}Expand description
One trial’s lifetime, from study.json.
Fields§
§trial_id: StringTrial identifier from study.json.
state: Stringcompleted | pruned | failed | running | pending.
started_at: Option<DateTime<Utc>>When the trial started, if it did.
finished_at: Option<DateTime<Utc>>When the trial finished, if it did.
duration_ms: Option<u64>Wall time between the two, when both are known.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrialSpan
impl<'de> Deserialize<'de> for TrialSpan
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 TrialSpan
impl RefUnwindSafe for TrialSpan
impl Send for TrialSpan
impl Sync for TrialSpan
impl Unpin for TrialSpan
impl UnsafeUnpin for TrialSpan
impl UnwindSafe for TrialSpan
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