Struct google_compute1::api::PathRule[][src]

pub struct PathRule {
    pub paths: Option<Vec<String>>,
    pub route_action: Option<HttpRouteAction>,
    pub service: Option<String>,
    pub url_redirect: Option<HttpRedirectAction>,
}

A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.

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

Fields

paths: Option<Vec<String>>

The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.

route_action: Option<HttpRouteAction>

In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within a pathRule's routeAction.

service: Option<String>

The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.

url_redirect: Option<HttpRedirectAction>

When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to target gRPC proxy.

Trait Implementations

impl Clone for PathRule[src]

impl Debug for PathRule[src]

impl Default for PathRule[src]

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

impl Part for PathRule[src]

impl Serialize for PathRule[src]

Auto Trait Implementations

impl RefUnwindSafe for PathRule[src]

impl Send for PathRule[src]

impl Sync for PathRule[src]

impl Unpin for PathRule[src]

impl UnwindSafe for PathRule[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.