pub struct CreateBody {
pub exposure_event: Option<String>,
pub flag_key: Option<String>,
pub id: String,
pub metric_event: String,
pub name: Option<String>,
pub subject_kind: Option<String>,
pub variants: Vec<Arm>,
}Fields§
§exposure_event: Option<String>ExposureEvent is the event that marks a subject as enrolled — the analysis denominator — defaulting to the SDK’s $feature_flag_called marker.
flag_key: Option<String>FlagKey names the assignment flag this experiment writes, defaulting to exp_
id: StringID is the experiment’s slug, claimed once per project. It must match [A-Za-z0-9][A-Za-z0-9._-]{0,127}.
metric_event: StringMetricEvent is the event that counts as a conversion — the analysis numerator.
name: Option<String>Name is free text for a reader; the id is what addresses the experiment.
subject_kind: Option<String>SubjectKind is the unit assigned and measured: user (the default), org, session or audience.
variants: Vec<Arm>Arms are the arms, at least two. Weights that are all zero become an even split; otherwise they must sum to 100, and at most one arm may be flagged control.
Implementations§
Source§impl CreateBody
impl CreateBody
Trait Implementations§
Source§impl Clone for CreateBody
impl Clone for CreateBody
Source§fn clone(&self) -> CreateBody
fn clone(&self) -> CreateBody
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 CreateBody
impl Debug for CreateBody
Source§impl Default for CreateBody
impl Default for CreateBody
Source§fn default() -> CreateBody
fn default() -> CreateBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateBody
impl<'de> Deserialize<'de> for CreateBody
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 CreateBody
impl PartialEq for CreateBody
Source§impl Serialize for CreateBody
impl Serialize for CreateBody
impl StructuralPartialEq for CreateBody
Auto Trait Implementations§
impl Freeze for CreateBody
impl RefUnwindSafe for CreateBody
impl Send for CreateBody
impl Sync for CreateBody
impl Unpin for CreateBody
impl UnsafeUnpin for CreateBody
impl UnwindSafe for CreateBody
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