[][src]Struct gcp_client::google::appengine::v1::TrafficSplit

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

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

Fields

shard_by: i32

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.

allocations: 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.

Implementations

impl TrafficSplit[src]

pub fn shard_by(&self) -> ShardBy[src]

Returns the enum value of shard_by, or the default if the field is set to an invalid enum value.

pub fn set_shard_by(&mut self, value: ShardBy)[src]

Sets shard_by to the provided enum value.

Trait Implementations

impl Clone for TrafficSplit[src]

impl Debug for TrafficSplit[src]

impl Default for TrafficSplit[src]

impl Message for TrafficSplit[src]

impl PartialEq<TrafficSplit> for TrafficSplit[src]

impl StructuralPartialEq 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> 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> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]