#[repr(u8)]pub enum LhsValue<'a> {
Ip(IpAddr),
Bytes(&'a [u8]),
Int(i32),
Bool(bool),
}
Expand description
An LHS value provided for filter execution.
These are passed to the execution context and are used by filters for execution and comparisons.
Variants§
Ip(IpAddr)
An IPv4 or IPv6 field.
These are represented as a single type to allow interop comparisons.
Bytes(&'a [u8])
A raw bytes or a string field.
These are completely interchangeable in runtime and differ only in syntax representation, so we represent them as a single type.
Int(i32)
A 32-bit integer number.
Bool(bool)
A boolean.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for LhsValue<'a>
impl<'de: 'a, 'a> Deserialize<'de> for LhsValue<'a>
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<'a> Eq for LhsValue<'a>
impl<'a> StructuralPartialEq for LhsValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for LhsValue<'a>
impl<'a> RefUnwindSafe for LhsValue<'a>
impl<'a> Send for LhsValue<'a>
impl<'a> Sync for LhsValue<'a>
impl<'a> Unpin for LhsValue<'a>
impl<'a> UnwindSafe for LhsValue<'a>
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,
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.