pub struct Redirects {
pub host: Option<String>,
pub source: Regex,
pub destination: String,
pub kind: StatusCode,
}
Expand description
The Redirects
file options.
Fields§
§host: Option<String>
Optional host to match against an incoming URI host if specified
source: Regex
Source pattern Regex matcher
destination: String
A local file that must exist
kind: StatusCode
Redirection type either 301 (Moved Permanently) or 302 (Found)
Auto Trait Implementations§
impl Freeze for Redirects
impl RefUnwindSafe for Redirects
impl Send for Redirects
impl Sync for Redirects
impl Unpin for Redirects
impl UnwindSafe for Redirects
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