Struct salvo_core::routing::filters::SchemeFilter
source · #[non_exhaustive]pub struct SchemeFilter {
pub scheme: Scheme,
pub lack: bool,
}
Expand description
Filter by request uri scheme.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.scheme: Scheme
Scheme to filter.
lack: bool
When scheme is lack in request uri, use this value.
Implementations§
Trait Implementations§
source§impl Clone for SchemeFilter
impl Clone for SchemeFilter
source§fn clone(&self) -> SchemeFilter
fn clone(&self) -> SchemeFilter
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 SchemeFilter
impl Debug for SchemeFilter
source§impl Filter for SchemeFilter
impl Filter for SchemeFilter
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 SchemeFilter
impl PartialEq for SchemeFilter
source§fn eq(&self, other: &SchemeFilter) -> bool
fn eq(&self, other: &SchemeFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SchemeFilter
impl StructuralPartialEq for SchemeFilter
Auto Trait Implementations§
impl Freeze for SchemeFilter
impl RefUnwindSafe for SchemeFilter
impl Send for SchemeFilter
impl Sync for SchemeFilter
impl Unpin for SchemeFilter
impl UnwindSafe for SchemeFilter
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.