pub struct RedirectionConfig {
pub enabled: bool,
pub http_port: u16,
}Expand description
Represents HTTPS redirection configuration options
Fields§
§enabled: boolSpecifies whether HTTPS redirection is enabled
Default: false
http_port: u16Specifies HTTP port for redirection middleware
Default: 7879
Trait Implementations§
Source§impl Clone for RedirectionConfig
impl Clone for RedirectionConfig
Source§fn clone(&self) -> RedirectionConfig
fn clone(&self) -> RedirectionConfig
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 RedirectionConfig
impl Debug for RedirectionConfig
Source§impl Default for RedirectionConfig
impl Default for RedirectionConfig
impl Copy for RedirectionConfig
Auto Trait Implementations§
impl Freeze for RedirectionConfig
impl RefUnwindSafe for RedirectionConfig
impl Send for RedirectionConfig
impl Sync for RedirectionConfig
impl Unpin for RedirectionConfig
impl UnsafeUnpin for RedirectionConfig
impl UnwindSafe for RedirectionConfig
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