ddwaf_object

Type Alias ddwaf_object 

Source
pub type ddwaf_object = _ddwaf_object;
Expand description

@struct ddwaf_object

Generic object used to pass data and rules to the WAF.

Aliased Type§

#[repr(C)]
pub struct ddwaf_object { pub parameterName: *const i8, pub parameterNameLength: u64, pub __bindgen_anon_1: _ddwaf_object__bindgen_ty_1, pub nbEntries: u64, pub type_: u32, }

Fields§

§parameterName: *const i8§parameterNameLength: u64§__bindgen_anon_1: _ddwaf_object__bindgen_ty_1§nbEntries: u64§type_: u32

Implementations§

Source§

impl ddwaf_object

Source

pub unsafe fn drop_key(&mut self)

Drops the key associated with the receiving ddwaf_object.

§Safety

The key, if present, must be a raw-converted [Box<[u8]>]. After this method returns, the values of ddwaf_object::parameterName and ddwaf_object::parameterNameLength must be replaced as they will no longer be valid.

§Panics

If the key is too large for this platform (can only happens on 32-bit platforms).

Source

pub unsafe fn drop_array(&mut self)

Drops the array data associated with the receiving ddwaf_object.

§Safety
§Panics

If the array is too large for this platform (can only happens on 32-bit platforms).

Source

pub unsafe fn drop_map(&mut self)

Drops the map data associated with the receiving ddwaf_object.

§Safety
§Panics

If the map is too large for this platform (can only happens on 32-bit platforms).

Source

pub unsafe fn drop_object(&mut self)

Drops the value associated with the receiving ddwaf_object.

§Safety

If the ddwaf_object is a string, array, or map, the respective requirements of the ddwaf_object::drop_string, ddwaf_object::drop_array, or ddwaf_object::drop_map methods apply.

Source

pub unsafe fn drop_string(&mut self)

Drops the string associated with the receiving ddwaf_object.

§Safety
§Panics

If the string is too large for this platform (can only happens on 32-bit platforms).

Trait Implementations§

Source§

impl Debug for ddwaf_object

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ddwaf_object

Source§

fn eq(&self, other: &ddwaf_object) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Send for ddwaf_object

Source§

impl Sync for ddwaf_object