Struct google_firebasehosting1_beta1::Redirect[][src]

pub struct Redirect {
    pub glob: Option<String>,
    pub location: Option<String>,
    pub status_code: Option<i32>,
}

A Redirect represents the configuration for returning an HTTP redirect response given a matching request URL path.

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

Fields

Required. The user-supplied glob pattern to match against the request URL path.

Required. The value to put in the HTTP location header of the response.
The location can contain capture group values from the pattern using a ":" prefix to identify the segment and an optional "*" to capture the rest of the URL. For example: "glob": "/:capture*",
"statusCode": 301,
"location": "https://example.com/foo/:capture"

Required. The status HTTP code to return in the response. It must be a valid 3xx status code.

Trait Implementations

impl Default for Redirect
[src]

Returns the "default value" for a type. Read more

impl Clone for Redirect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Redirect
[src]

Formats the value using the given formatter. Read more

impl Part for Redirect
[src]

Auto Trait Implementations

impl Send for Redirect

impl Sync for Redirect