pub fn treatment_weights(mut self, k: impl Into<std::string::String>, v: i64) -> Self {
            let mut hash_map = self.treatment_weights.unwrap_or_default();
            hash_map.insert(k.into(), v);
            self.treatment_weights = Some(hash_map);
            self
        }
/// Adds a key-value pair to `treatment_weights`.
///
/// To override the contents of this collection use [`set_treatment_weights`](Self::set_treatment_weights).
///
/// <p>A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.</p>
Adds a key-value pair to `treatment_weights`.
To override the contents of this collection use [`set_treatment_weights`](Self::set_treatment_weights).

A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
Adds a key - value pair to ` treatment_weights ` . To override the contents of this collection use [ ` set_treatment_weights ` ] ( Self :: set_treatment_weights ) . A set of key - value pairs . The keys are variation names and the values are the portion of experiment traffic to be assigned to that variation . The traffic portion is specified in thousandths of a percent so 20 000 for a variation would allocate 20% of the experiment traffic to that variation .
pub fn treatment_weights(mut self, k: impl Into<std::string::String>, v: i64) -> Self {
            let mut hash_map = self.treatment_weights.unwrap_or_default();
            hash_map.insert(k.into(), v);
            self.treatment_weights = Some(hash_map);
            self
        }
pub fn treatment_weights ( mut self , k : impl Into < std :: string :: String > , v : i64 ) -> Self { let mut hash_map = self . treatment_weights . unwrap_or_default ( ) ; hash_map . insert ( k . into ( ) , v ) ; self . treatment_weights = Some ( hash_map ) ; self }
Adds a key-value pair to `treatment_weights`.
Adds a key - value pair to ` treatment_weights ` .
mut self
k
impl Into<std::string::String>
v
i64
mut self
k
impl Into<std::string::String>
v
i64