pub struct RunRecord { /* private fields */ }Expand description
Run Record represents a single execution of an experiment.
Each experiment can have multiple runs. A run tracks the execution lifecycle from start to completion.
Implementations§
Source§impl RunRecord
impl RunRecord
Sourcepub fn new(run_id: impl Into<String>, experiment_id: impl Into<String>) -> Self
pub fn new(run_id: impl Into<String>, experiment_id: impl Into<String>) -> Self
Create a new run record in Pending status.
§Arguments
run_id- Unique identifier for the runexperiment_id- ID of the parent experiment
Sourcepub fn builder(
run_id: impl Into<String>,
experiment_id: impl Into<String>,
) -> RunRecordBuilder
pub fn builder( run_id: impl Into<String>, experiment_id: impl Into<String>, ) -> RunRecordBuilder
Create a builder for constructing a run record with optional fields.
Sourcepub fn experiment_id(&self) -> &str
pub fn experiment_id(&self) -> &str
Get the parent experiment ID.
Sourcepub const fn started_at(&self) -> Option<DateTime<Utc>>
pub const fn started_at(&self) -> Option<DateTime<Utc>>
Get the start timestamp, if the run has started.
Sourcepub const fn ended_at(&self) -> Option<DateTime<Utc>>
pub const fn ended_at(&self) -> Option<DateTime<Utc>>
Get the end timestamp, if the run has completed.
Sourcepub fn renacer_span_id(&self) -> Option<&str>
pub fn renacer_span_id(&self) -> Option<&str>
Get the renacer span ID for distributed tracing, if set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
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 RunRecord
impl StructuralPartialEq for RunRecord
Auto Trait Implementations§
impl Freeze for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecord
impl UnwindSafe for RunRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.