pub struct RoutingRule {
pub condition: Option<Condition>,
pub redirect: Redirect,
}Expand description
Specifies the redirect behavior and when a redirect is applied.
Fields§
§condition: Option<Condition>A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
redirect: RedirectContainer for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.
Trait Implementations§
Source§impl Clone for RoutingRule
impl Clone for RoutingRule
Source§fn clone(&self) -> RoutingRule
fn clone(&self) -> RoutingRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutingRule
impl Debug for RoutingRule
Source§impl Default for RoutingRule
impl Default for RoutingRule
Source§fn default() -> RoutingRule
fn default() -> RoutingRule
Returns the “default value” for a type. Read more
Source§impl PartialEq for RoutingRule
impl PartialEq for RoutingRule
impl StructuralPartialEq for RoutingRule
Auto Trait Implementations§
impl Freeze for RoutingRule
impl RefUnwindSafe for RoutingRule
impl Send for RoutingRule
impl Sync for RoutingRule
impl Unpin for RoutingRule
impl UnwindSafe for RoutingRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more