pub enum HttpBody {
AnyOrEqual,
Plaintext(PlaintextEvaluator),
Json(JsonEvaluator),
}
Variants§
Trait Implementations§
Source§impl Acceptable<&Bytes> for HttpBody
impl Acceptable<&Bytes> for HttpBody
type Message = HttpEvaluateError
fn accept( &self, body: &Destinations<&Bytes>, 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<'de> Deserialize<'de> for HttpBody
impl<'de> Deserialize<'de> for HttpBody
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
impl Eq for HttpBody
impl StructuralPartialEq for HttpBody
Auto Trait Implementations§
impl Freeze for HttpBody
impl RefUnwindSafe for HttpBody
impl Send for HttpBody
impl Sync for HttpBody
impl Unpin for HttpBody
impl UnwindSafe for HttpBody
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.