pub enum HttpStatus {
OkOrEqual,
Expect(AllOr<StatusCode>),
Ignore,
}
Variants§
Trait Implementations§
Source§impl Acceptable<&StatusCode> for HttpStatus
impl Acceptable<&StatusCode> for HttpStatus
type Message = HttpEvaluateError
fn accept( &self, status: &Destinations<&StatusCode>, 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 HttpStatus
impl Clone for HttpStatus
Source§fn clone(&self) -> HttpStatus
fn clone(&self) -> HttpStatus
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 HttpStatus
impl Debug for HttpStatus
Source§impl Default for HttpStatus
impl Default for HttpStatus
Source§fn default() -> HttpStatus
fn default() -> HttpStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpStatus
impl<'de> Deserialize<'de> for HttpStatus
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 HttpStatus
impl PartialEq for HttpStatus
Source§impl Serialize for HttpStatus
impl Serialize for HttpStatus
impl Eq for HttpStatus
impl StructuralPartialEq for HttpStatus
Auto Trait Implementations§
impl Freeze for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnwindSafe for HttpStatus
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.