Struct salvo_core::routing::filters::HostFilter
source · pub struct HostFilter {
pub host: String,
pub lack: bool,
}
Expand description
Filter by request uri host.
Fields§
§host: String
Host to filter.
lack: bool
When host is lack in request uri, use this value.
Implementations§
Trait Implementations§
source§impl Clone for HostFilter
impl Clone for HostFilter
source§fn clone(&self) -> HostFilter
fn clone(&self) -> HostFilter
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 HostFilter
impl Debug for HostFilter
source§impl Filter for HostFilter
impl Filter for HostFilter
source§fn filter(&self, req: &mut Request, _state: &mut PathState) -> bool
fn filter(&self, req: &mut Request, _state: &mut PathState) -> bool
Filter
Request
and returns false or true.source§impl PartialEq for HostFilter
impl PartialEq for HostFilter
source§fn eq(&self, other: &HostFilter) -> bool
fn eq(&self, other: &HostFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HostFilter
impl StructuralPartialEq for HostFilter
Auto Trait Implementations§
impl Freeze for HostFilter
impl RefUnwindSafe for HostFilter
impl Send for HostFilter
impl Sync for HostFilter
impl Unpin for HostFilter
impl UnwindSafe for HostFilter
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> 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.