Struct google_compute1::api::WeightedBackendService[][src]

pub struct WeightedBackendService {
    pub backend_service: Option<String>,
    pub header_action: Option<HttpHeaderAction>,
    pub weight: Option<u32>,
}

In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple BackendServices. The volume of traffic for each BackendService is proportional to the weight specified in each WeightedBackendService

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

Fields

backend_service: Option<String>

The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the loadbalancer applies any relevant headerActions specified as part of this backendServiceWeight.

header_action: Option<HttpHeaderAction>

Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Note that headerAction is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true.

weight: Option<u32>

Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService's session affinity policy. The value must be between 0 and 1000

Trait Implementations

impl Clone for WeightedBackendService[src]

impl Debug for WeightedBackendService[src]

impl Default for WeightedBackendService[src]

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

impl Part for WeightedBackendService[src]

impl Serialize for WeightedBackendService[src]

Auto Trait Implementations

impl RefUnwindSafe for WeightedBackendService[src]

impl Send for WeightedBackendService[src]

impl Sync for WeightedBackendService[src]

impl Unpin for WeightedBackendService[src]

impl UnwindSafe for WeightedBackendService[src]

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.