Struct static_web_server::settings::file::Redirects
source · pub struct Redirects {
pub host: Option<String>,
pub source: String,
pub destination: String,
pub kind: RedirectsKind,
}
Expand description
Represents redirects types.
Fields§
§host: Option<String>
Optional host to match against an incoming URI host if specified
source: String
Source of the redirect.
destination: String
Redirect destination.
kind: RedirectsKind
Redirect type either 301 (Moved Permanently) or 302 (Found).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Redirects
impl<'de> Deserialize<'de> for Redirects
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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