pub struct Upstream {
pub backends: Option<Vec<Backend>>,
pub id: Option<String>,
pub pass_host_header: Option<bool>,
}Fields§
§backends: Option<Vec<Backend>>Backends are the upstream servers to balance across: 1..32 of them.
id: Option<String>ID identifies the pool within the org: [A-Za-z0-9-_.], at most 128 chars. A create that omits it gets a generated one. Routes reference it by this id.
pass_host_header: Option<bool>PassHostHeader forwards the client’s original Host header upstream instead of rewriting it to the backend’s.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Upstream
impl<'de> Deserialize<'de> for Upstream
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
impl StructuralPartialEq for Upstream
Auto Trait Implementations§
impl Freeze for Upstream
impl RefUnwindSafe for Upstream
impl Send for Upstream
impl Sync for Upstream
impl Unpin for Upstream
impl UnsafeUnpin for Upstream
impl UnwindSafe for Upstream
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