pub enum HttpHeaders {
AnyOrEqual,
Expect(AllOr<HeaderMap>),
Ignore,
}
Variants§
Trait Implementations§
Source§impl Acceptable<&HeaderMap> for HttpHeaders
impl Acceptable<&HeaderMap> for HttpHeaders
type Message = HttpEvaluateError
fn accept( &self, headers: &Destinations<&HeaderMap>, msg: &mut Messages<Self::Message>, ) -> bool
fn sub_accept<U, A, F>(
acceptable: &A,
dest: &Destinations<U>,
msg: &mut Messages<Self::Message>,
convert: F,
) -> boolwhere
A: Acceptable<U>,
F: Fn(<A as Acceptable<U>>::Message) -> Self::Message,
fn assault_or_compare<F>(d: &Destinations<T>, f: F) -> bool
fn validate_all<F>(d: &Destinations<T>, f: F) -> bool
fn compare_all(status: &Destinations<T>) -> boolwhere
T: PartialEq,
Source§impl Clone for HttpHeaders
impl Clone for HttpHeaders
Source§fn clone(&self) -> HttpHeaders
fn clone(&self) -> HttpHeaders
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 HttpHeaders
impl Debug for HttpHeaders
Source§impl Default for HttpHeaders
impl Default for HttpHeaders
Source§fn default() -> HttpHeaders
fn default() -> HttpHeaders
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpHeaders
impl<'de> Deserialize<'de> for HttpHeaders
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 HttpHeaders
impl PartialEq for HttpHeaders
Source§impl Serialize for HttpHeaders
impl Serialize for HttpHeaders
impl Eq for HttpHeaders
impl StructuralPartialEq for HttpHeaders
Auto Trait Implementations§
impl Freeze for HttpHeaders
impl RefUnwindSafe for HttpHeaders
impl Send for HttpHeaders
impl Sync for HttpHeaders
impl Unpin for HttpHeaders
impl UnwindSafe for HttpHeaders
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.