pub struct UpstreamConf {
pub upstream: Option<Uri>,
}
Expand description
Configuration settings of the compression module
Fields§
§upstream: Option<Uri>
http:// or https:// URL identifying the server that requests should be forwarded for. Path and query parts of the URL have no effect.
Implementations§
Source§impl UpstreamConf
impl UpstreamConf
Sourcepub fn merge_with_opt(&mut self, opt: UpstreamOpt)
pub fn merge_with_opt(&mut self, opt: UpstreamOpt)
Merges the command line options into the current configuration. Any command line options present overwrite existing settings.
Trait Implementations§
Source§impl Debug for UpstreamConf
impl Debug for UpstreamConf
Source§impl Default for UpstreamConf
impl Default for UpstreamConf
Source§fn default() -> UpstreamConf
fn default() -> UpstreamConf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpstreamConfwhere
UpstreamConf: Default,
impl<'de> Deserialize<'de> for UpstreamConfwhere
UpstreamConf: Default,
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 UpstreamConf
impl RefUnwindSafe for UpstreamConf
impl Send for UpstreamConf
impl Sync for UpstreamConf
impl Unpin for UpstreamConf
impl UnwindSafe for UpstreamConf
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