Function group_and_rollout

Source
pub fn group_and_rollout<S: BuildHasher>(
    parameters: &Option<HashMap<String, String, S>>,
    rollout_key: &str,
) -> (String, u32)
Expand description

Get the group and rollout parameters for gradual rollouts.

When no group is supplied, group is set to “”.

Checks the following parameter keys: groupId: defines the hash group, used to either correlate or prevent correlation across toggles. rollout_key: supplied by the caller, this keys value is the percent of the hashed results to enable.