Struct google_appengine1::api::TrafficSplit[][src]

pub struct TrafficSplit {
    pub allocations: Option<HashMap<String, f64>>,
    pub shard_by: Option<String>,
}

Traffic routing configuration for versions within a single service. Traffic splits define how traffic directed to the service is assigned to versions.

This type is not used in any activity, and only used as part of another schema.

Fields

allocations: Option<HashMap<String, f64>>

Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.

shard_by: Option<String>

Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed.

Trait Implementations

impl Clone for TrafficSplit[src]

impl Debug for TrafficSplit[src]

impl Default for TrafficSplit[src]

impl<'de> Deserialize<'de> for TrafficSplit[src]

impl Part for TrafficSplit[src]

impl Serialize for TrafficSplit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.