#[repr(C)]pub struct _cef_post_data_t {
pub base: cef_base_ref_counted_t,
pub is_read_only: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> c_int>,
pub has_excluded_elements: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> c_int>,
pub get_element_count: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> usize>,
pub get_elements: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t, elementsCount: *mut usize, elements: *mut *mut _cef_post_data_element_t)>,
pub remove_element: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t, element: *mut _cef_post_data_element_t) -> c_int>,
pub add_element: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t, element: *mut _cef_post_data_element_t) -> c_int>,
pub remove_elements: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t)>,
}Expand description
Structure used to represent post data for a web request. The functions of this structure may be called on any thread.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
is_read_only: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> c_int>Returns true (1) if this object is read-only.
has_excluded_elements: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> c_int>Returns true (1) if the underlying POST data includes elements that are not represented by this cef_post_data_t object (for example, multi-part file upload data). Modifying cef_post_data_t objects with excluded elements may result in the request failing.
get_element_count: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> usize>Returns the number of existing post data elements.
get_elements: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t, elementsCount: *mut usize, elements: *mut *mut _cef_post_data_element_t)>Retrieve the post data elements.
remove_element: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t, element: *mut _cef_post_data_element_t) -> c_int>Remove the specified post data element. Returns true (1) if the removal succeeds.
add_element: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t, element: *mut _cef_post_data_element_t) -> c_int>Add the specified post data element. Returns true (1) if the add succeeds.
remove_elements: Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t)>Remove all existing post data elements.
Trait Implementations§
Source§impl Clone for _cef_post_data_t
impl Clone for _cef_post_data_t
Source§fn clone(&self) -> _cef_post_data_t
fn clone(&self) -> _cef_post_data_t
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 _cef_post_data_t
impl Debug for _cef_post_data_t
impl Copy for _cef_post_data_t
Auto Trait Implementations§
impl Freeze for _cef_post_data_t
impl RefUnwindSafe for _cef_post_data_t
impl Send for _cef_post_data_t
impl Sync for _cef_post_data_t
impl Unpin for _cef_post_data_t
impl UnwindSafe for _cef_post_data_t
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