pub struct HttpForward {
pub host: String,
pub port: Option<u16>,
pub scheme: Option<String>,
}Expand description
Forward action — proxy the matched request to another host.
§Example
use mockserver_client::HttpForward;
let forward = HttpForward::new("backend.local", 8080);Fields§
§host: String§port: Option<u16>§scheme: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for HttpForward
impl Clone for HttpForward
Source§fn clone(&self) -> HttpForward
fn clone(&self) -> HttpForward
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpForward
impl Debug for HttpForward
Source§impl<'de> Deserialize<'de> for HttpForward
impl<'de> Deserialize<'de> for HttpForward
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
Source§impl PartialEq for HttpForward
impl PartialEq for HttpForward
Source§fn eq(&self, other: &HttpForward) -> bool
fn eq(&self, other: &HttpForward) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HttpForward
impl Serialize for HttpForward
impl StructuralPartialEq for HttpForward
Auto Trait Implementations§
impl Freeze for HttpForward
impl RefUnwindSafe for HttpForward
impl Send for HttpForward
impl Sync for HttpForward
impl Unpin for HttpForward
impl UnsafeUnpin for HttpForward
impl UnwindSafe for HttpForward
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