pub struct Experiment {
pub id: String,
pub name: String,
pub description: Option<String>,
pub start_time: DateTime<FixedOffset>,
pub end_time: DateTime<FixedOffset>,
pub item_count: i32,
pub dataset_id: Option<String>,
pub metadata: Option<Option<HashMap<String, Value>>>,
pub scores: Option<Option<Vec<ScoreV3>>>,
}Fields§
§id: String§name: String§description: Option<String>§start_time: DateTime<FixedOffset>Start of the experiment, i.e. the earliest event within the requested time range. Clipped to fromStartTime when the experiment started before the requested range.
end_time: DateTime<FixedOffset>End of the experiment, i.e. the latest event end within the requested time range.
item_count: i32Number of experiment items within the requested time range.
dataset_id: Option<String>Null when the experiment is not associated with a dataset.
metadata: Option<Option<HashMap<String, Value>>>Included only when fields=metadata is requested.
scores: Option<Option<Vec<ScoreV3>>>Included only when fields=scores is requested. Contains scores directly attached to the experiment.
Implementations§
Source§impl Experiment
impl Experiment
Sourcepub fn builder() -> ExperimentBuilder
pub fn builder() -> ExperimentBuilder
Create an instance of Experiment using the builder syntax
Source§impl Experiment
impl Experiment
pub fn new( id: String, name: String, description: Option<String>, start_time: DateTime<FixedOffset>, end_time: DateTime<FixedOffset>, item_count: i32, dataset_id: Option<String>, ) -> Experiment
Trait Implementations§
Source§impl Clone for Experiment
impl Clone for Experiment
Source§impl Debug for Experiment
impl Debug for Experiment
Source§impl Default for Experiment
impl Default for Experiment
Source§impl<'de> Deserialize<'de> for Experiment
impl<'de> Deserialize<'de> for Experiment
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
Source§impl PartialEq for Experiment
impl PartialEq for Experiment
Source§impl Serialize for Experiment
impl Serialize for Experiment
impl StructuralPartialEq for Experiment
Auto Trait Implementations§
impl Freeze for Experiment
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnsafeUnpin for Experiment
impl UnwindSafe for Experiment
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