#[non_exhaustive]pub enum WafObjectType {
Invalid,
Signed,
Unsigned,
String,
Array,
Map,
Bool,
Float,
Null,
}
Expand description
Identifies the type of the value stored in a WafObject
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid
An invalid value. This can be used as a placeholder to retain the key associated with an object that was only aprtially encoded.
Signed
A signed integer with 64-bit precision.
Unsigned
An unsigned integer with 64-bit precision.
String
A string value.
Array
An array of WafObject
s.
Map
A map of string-keyed WafObject
s.
Bool
A boolean value.
Float
A floating point value (64-bit precision).
Null
The null value.
Trait Implementations§
Source§impl Clone for WafObjectType
impl Clone for WafObjectType
Source§fn clone(&self) -> WafObjectType
fn clone(&self) -> WafObjectType
Returns a duplicate 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 WafObjectType
impl Debug for WafObjectType
Source§impl PartialEq for WafObjectType
impl PartialEq for WafObjectType
Source§impl TryFrom<u32> for WafObjectType
impl TryFrom<u32> for WafObjectType
Source§type Error = UnknownObjectTypeError
type Error = UnknownObjectTypeError
The type returned in the event of a conversion error.
Source§fn try_from(value: DDWAF_OBJ_TYPE) -> Result<Self, UnknownObjectTypeError>
fn try_from(value: DDWAF_OBJ_TYPE) -> Result<Self, UnknownObjectTypeError>
Performs the conversion.
impl Copy for WafObjectType
impl Eq for WafObjectType
impl StructuralPartialEq for WafObjectType
Auto Trait Implementations§
impl Freeze for WafObjectType
impl RefUnwindSafe for WafObjectType
impl Send for WafObjectType
impl Sync for WafObjectType
impl Unpin for WafObjectType
impl UnwindSafe for WafObjectType
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