pub struct WafUnsigned { /* private fields */ }
Expand description
The WAF object representation of a value of type WafObjectType::Unsigned
Implementations§
Source§impl WafUnsigned
impl WafUnsigned
Sourcepub const fn is_valid(&self) -> bool
pub const fn is_valid(&self) -> bool
Returns true if this WafUnsigned is indeed WafObjectType::Unsigned.
Sourcepub const fn new(val: u64) -> Self
pub const fn new(val: u64) -> Self
Creates a new WafUnsigned
with the provided value.
Sourcepub const fn value(&self) -> u64
pub const fn value(&self) -> u64
Retuns the value of this WafUnsigned
.
Trait Implementations§
Source§impl AsRef<_ddwaf_object> for WafUnsigned
impl AsRef<_ddwaf_object> for WafUnsigned
Source§fn as_ref(&self) -> &ddwaf_object
fn as_ref(&self) -> &ddwaf_object
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for WafUnsigned
impl Debug for WafUnsigned
Source§impl Default for WafUnsigned
impl Default for WafUnsigned
Source§impl From<u32> for WafUnsigned
impl From<u32> for WafUnsigned
Source§impl From<u64> for WafUnsigned
impl From<u64> for WafUnsigned
Source§impl<T: AsRef<ddwaf_object>> PartialEq<T> for WafUnsigned
impl<T: AsRef<ddwaf_object>> PartialEq<T> for WafUnsigned
Source§impl Serialize for WafUnsigned
impl Serialize for WafUnsigned
Source§impl TryFrom<WafObject> for WafUnsigned
impl TryFrom<WafObject> for WafUnsigned
Source§impl TypedWafObject for WafUnsigned
impl TypedWafObject for WafUnsigned
Source§const TYPE: WafObjectType = WafObjectType::Unsigned
const TYPE: WafObjectType = WafObjectType::Unsigned
The associated
WafObjectType
constant corresponding to the typed
object’s type discriminator.Auto Trait Implementations§
impl Freeze for WafUnsigned
impl RefUnwindSafe for WafUnsigned
impl Send for WafUnsigned
impl Sync for WafUnsigned
impl Unpin for WafUnsigned
impl UnwindSafe for WafUnsigned
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