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
glob: Option<String>
Required. The user-supplied glob pattern 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 Default for Redirect
[src]
impl Default for Redirect
impl Clone for Redirect
[src]
impl Clone for Redirect
fn clone(&self) -> Redirect
[src]
fn clone(&self) -> Redirect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Redirect
[src]
impl Debug for Redirect
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for Redirect
[src]
impl Part for Redirect