pub struct ConfigOptsProxy {
pub backend: Uri,
pub rewrite: Option<String>,
pub ws: bool,
pub insecure: bool,
}Expand description
Config options for building proxies.
NOTE WELL: this configuration type is different from the others inasmuch as it is only used
when parsing the Trunk.toml config file. It is not intended to be configured via CLI or env
vars.
Fields§
§backend: UriThe URL of the backend to which requests are to be proxied.
rewrite: Option<String>An optional URI prefix which is to be used as the base URI for proxying requests, which defaults to the URI of the backend.
When a value is specified, requests received on this URI will have this URI segment
replaced with the URI of the backend.
ws: boolConfigure the proxy for handling WebSockets.
insecure: boolConfigure the proxy to accept insecure certificates.
Trait Implementations§
Source§impl Clone for ConfigOptsProxy
impl Clone for ConfigOptsProxy
Source§fn clone(&self) -> ConfigOptsProxy
fn clone(&self) -> ConfigOptsProxy
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 ConfigOptsProxy
impl Debug for ConfigOptsProxy
Source§impl<'de> Deserialize<'de> for ConfigOptsProxy
impl<'de> Deserialize<'de> for ConfigOptsProxy
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 ConfigOptsProxy
impl RefUnwindSafe for ConfigOptsProxy
impl Send for ConfigOptsProxy
impl Sync for ConfigOptsProxy
impl Unpin for ConfigOptsProxy
impl UnwindSafe for ConfigOptsProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more