pub struct Trial {
pub id: TrialId,
pub assignments: Assignments,
pub labels: Labels,
pub tags: Tags,
pub metadata: Option<TrialMetadata>,
}Expand description
One immutable trial configuration.
Fields§
§id: TrialIdTrial id.
assignments: AssignmentsThe parameter assignments for every element in scope.
labels: LabelsIntrinsic facts (e.g. the compiler-stamped trial_code label).
Organisational tags.
metadata: Option<TrialMetadata>Advisory trial metadata.
Implementations§
Source§impl Trial
impl Trial
Sourcepub fn builder() -> TrialBuilder
pub fn builder() -> TrialBuilder
Create an instance of Trial using the builder syntax
Source§impl Trial
impl Trial
Sourcepub fn canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
Stable byte encoding of this trial’s content. Excludes
id, metadata, labels, and tags — those are ancillary
to the trial’s identity. See SRD-0006 §Canonical bytes.
Callers compute a hash at a trust boundary (persistence write,
audit compare) with
Fingerprint::of(&trial.canonical_bytes()).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trial
impl<'de> Deserialize<'de> for Trial
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 StructuralPartialEq for Trial
Auto Trait Implementations§
impl Freeze for Trial
impl RefUnwindSafe for Trial
impl Send for Trial
impl Sync for Trial
impl Unpin for Trial
impl UnsafeUnpin for Trial
impl UnwindSafe for Trial
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