[][src]Struct google_firebasehosting1_beta1::Redirect

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

A redirect object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.

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

Fields

regex: Option<String>

The user-supplied RE2 regular expression to match against the request URL path.

glob: Option<String>

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

location: Option<String>

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"

status_code: Option<i32>

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

Trait Implementations

impl Clone for Redirect[src]

impl Debug for Redirect[src]

impl Default for Redirect[src]

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

impl Part for Redirect[src]

impl Serialize for Redirect[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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.

impl<T> Typeable for T where
    T: Any