Struct static_web_server::settings::Rewrites
source · pub struct Rewrites {
pub source: Regex,
pub destination: String,
pub redirect: Option<RedirectsKind>,
}
Expand description
The Rewrites
file options.
Fields§
§source: Regex
Source pattern Regex matcher
destination: String
A local file that must exist
redirect: Option<RedirectsKind>
Optional redirect type either 301 (Moved Permanently) or 302 (Found).
Auto Trait Implementations§
impl Freeze for Rewrites
impl RefUnwindSafe for Rewrites
impl Send for Rewrites
impl Sync for Rewrites
impl Unpin for Rewrites
impl UnwindSafe for Rewrites
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