pub struct Experiment {
pub id: String,
pub name: String,
pub description: Option<String>,
pub status: String,
pub variant_a_routing_rule_id: String,
pub variant_b_routing_rule_id: String,
pub split_percentage: i32,
pub created_at: String,
pub rolled_back_at: Option<String>,
}Expand description
An A/B routing experiment.
Fields§
§id: StringExperiment id.
name: StringDisplay name.
description: Option<String>Optional description.
status: StringLifecycle state (active, rolled_back, completed).
variant_a_routing_rule_id: StringRouting rule id for variant A.
variant_b_routing_rule_id: StringRouting rule id for variant B.
split_percentage: i32Percentage of traffic on variant B.
created_at: StringRFC3339 creation timestamp.
rolled_back_at: Option<String>RFC3339 rollback timestamp, if rolled back.
Trait Implementations§
Source§impl Clone for Experiment
impl Clone for Experiment
Source§fn clone(&self) -> Experiment
fn clone(&self) -> Experiment
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 moreSource§impl Debug for Experiment
impl Debug 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
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