Struct google_appengine1_beta5::TrafficSplit
source · pub struct TrafficSplit {
pub shard_by: Option<String>,
pub allocations: Option<HashMap<String, f64>>,
}
Expand description
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§
§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.
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.
Trait Implementations§
source§impl Clone for TrafficSplit
impl Clone for TrafficSplit
source§fn clone(&self) -> TrafficSplit
fn clone(&self) -> TrafficSplit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TrafficSplit
impl Debug for TrafficSplit
source§impl Default for TrafficSplit
impl Default for TrafficSplit
source§fn default() -> TrafficSplit
fn default() -> TrafficSplit
source§impl<'de> Deserialize<'de> for TrafficSplit
impl<'de> Deserialize<'de> for TrafficSplit
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>,
source§impl Serialize for TrafficSplit
impl Serialize for TrafficSplit
impl Part for TrafficSplit
Auto Trait Implementations§
impl Freeze for TrafficSplit
impl RefUnwindSafe for TrafficSplit
impl Send for TrafficSplit
impl Sync for TrafficSplit
impl Unpin for TrafficSplit
impl UnwindSafe for TrafficSplit
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more