Struct TrialRecord
pub struct TrialRecord {
pub id: TrialId,
pub number: TrialNumber,
pub study: StudyId,
pub state: TrialState,
pub created_at_millis: u64,
}Expand description
What storage returns when a trial is created.
Deliberately smaller than FrozenTrial: creation only establishes
identity, ordinal and birth time. Anything else is a subsequent write.
Fields§
§id: TrialIdStorage-global identity.
number: TrialNumberPer-study ordinal, contiguous and race-safe.
study: StudyIdThe owning study.
state: TrialStateState at creation — normally TrialState::Waiting.
created_at_millis: u64Creation time, from the study’s Clock.
Trait Implementations§
§impl Clone for TrialRecord
impl Clone for TrialRecord
§fn clone(&self) -> TrialRecord
fn clone(&self) -> TrialRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrialRecord
§impl Debug for TrialRecord
impl Debug for TrialRecord
§impl<'de> Deserialize<'de> for TrialRecord
impl<'de> Deserialize<'de> for TrialRecord
§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 TrialRecord
§impl PartialEq for TrialRecord
impl PartialEq for TrialRecord
§impl Serialize for TrialRecord
impl Serialize for TrialRecord
impl StructuralPartialEq for TrialRecord
Auto Trait Implementations§
impl Freeze for TrialRecord
impl RefUnwindSafe for TrialRecord
impl Send for TrialRecord
impl Sync for TrialRecord
impl Unpin for TrialRecord
impl UnsafeUnpin for TrialRecord
impl UnwindSafe for TrialRecord
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