Enum googapis::google::cloud::compute::v1::http_redirect_action::RedirectResponseCode [−][src]
#[repr(i32)]
pub enum RedirectResponseCode {
UndefinedRedirectResponseCode,
Found,
MovedPermanentlyDefault,
PermanentRedirect,
SeeOther,
TemporaryRedirect,
}
Expand description
The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
Variants
A value indicating that the enum field is not set.
Http Status Code 302 - Found.
Http Status Code 301 - Moved Permanently.
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
Http Status Code 303 - See Other.
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for RedirectResponseCode
impl Send for RedirectResponseCode
impl Sync for RedirectResponseCode
impl Unpin for RedirectResponseCode
impl UnwindSafe for RedirectResponseCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more