Struct sozu_command_lib::response::HttpFrontend
source · pub struct HttpFrontend {
pub cluster_id: Option<ClusterId>,
pub address: SocketAddr,
pub hostname: String,
pub path: PathRule,
pub method: Option<String>,
pub position: RulePosition,
pub tags: Option<BTreeMap<String, String>>,
}
Expand description
An HTTP or HTTPS frontend, as used within Sōzu
Fields§
§cluster_id: Option<ClusterId>
Send a 401, DENY, if cluster_id is None
address: SocketAddr
§hostname: String
§path: PathRule
§method: Option<String>
§position: RulePosition
Trait Implementations§
source§impl Clone for HttpFrontend
impl Clone for HttpFrontend
source§fn clone(&self) -> HttpFrontend
fn clone(&self) -> HttpFrontend
Returns a copy 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 HttpFrontend
impl Debug for HttpFrontend
source§impl<'de> Deserialize<'de> for HttpFrontend
impl<'de> Deserialize<'de> for HttpFrontend
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 From<HttpFrontend> for RequestHttpFrontend
impl From<HttpFrontend> for RequestHttpFrontend
source§fn from(val: HttpFrontend) -> Self
fn from(val: HttpFrontend) -> Self
Converts to this type from the input type.
source§impl Hash for HttpFrontend
impl Hash for HttpFrontend
source§impl Ord for HttpFrontend
impl Ord for HttpFrontend
source§fn cmp(&self, other: &HttpFrontend) -> Ordering
fn cmp(&self, other: &HttpFrontend) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HttpFrontend
impl PartialEq for HttpFrontend
source§fn eq(&self, other: &HttpFrontend) -> bool
fn eq(&self, other: &HttpFrontend) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HttpFrontend
impl PartialOrd for HttpFrontend
source§fn partial_cmp(&self, other: &HttpFrontend) -> Option<Ordering>
fn partial_cmp(&self, other: &HttpFrontend) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for HttpFrontend
impl Serialize for HttpFrontend
impl Eq for HttpFrontend
impl StructuralPartialEq for HttpFrontend
Auto Trait Implementations§
impl Freeze for HttpFrontend
impl RefUnwindSafe for HttpFrontend
impl Send for HttpFrontend
impl Sync for HttpFrontend
impl Unpin for HttpFrontend
impl UnwindSafe for HttpFrontend
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.