Struct static_web_server::https_redirect::RedirectOpts
source · pub struct RedirectOpts {
pub https_hostname: String,
pub https_port: u16,
pub allowed_hosts: Vec<String>,
}
Available on crate feature
http2
only.Expand description
HTTPS redirect options.
Fields§
§https_hostname: String
HTTPS hostname to redirect to.
https_port: u16
HTTPS hostname port to redirect to.
allowed_hosts: Vec<String>
Hostnames or IPS to redirect from.
Auto Trait Implementations§
impl Freeze for RedirectOpts
impl RefUnwindSafe for RedirectOpts
impl Send for RedirectOpts
impl Sync for RedirectOpts
impl Unpin for RedirectOpts
impl UnwindSafe for RedirectOpts
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