pub struct ProxySiteConfig {
pub connect_timeout_secs: Option<u32>,
pub read_timeout_secs: Option<u32>,
pub preserve_host: Option<bool>,
pub proxy_protocol: Option<bool>,
pub custom_headers: Option<HashMap<String, String>>,
pub forward_headers: Option<bool>,
pub websocket: Option<bool>,
}Expand description
Configuration for a proxy site (stored as JSON in the config column)
Fields§
§connect_timeout_secs: Option<u32>§read_timeout_secs: Option<u32>§preserve_host: Option<bool>§proxy_protocol: Option<bool>§custom_headers: Option<HashMap<String, String>>§forward_headers: Option<bool>§websocket: Option<bool>Trait Implementations§
Source§impl Clone for ProxySiteConfig
impl Clone for ProxySiteConfig
Source§fn clone(&self) -> ProxySiteConfig
fn clone(&self) -> ProxySiteConfig
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 ProxySiteConfig
impl Debug for ProxySiteConfig
Source§impl Default for ProxySiteConfig
impl Default for ProxySiteConfig
Source§fn default() -> ProxySiteConfig
fn default() -> ProxySiteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProxySiteConfig
impl<'de> Deserialize<'de> for ProxySiteConfig
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 ProxySiteConfig
impl RefUnwindSafe for ProxySiteConfig
impl Send for ProxySiteConfig
impl Sync for ProxySiteConfig
impl Unpin for ProxySiteConfig
impl UnsafeUnpin for ProxySiteConfig
impl UnwindSafe for ProxySiteConfig
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