#[non_exhaustive]pub struct DataResponse {
pub success: bool,
pub data: Option<Vec<SqlmapDataChunk>>,
pub error: Option<Vec<String>>,
pub message: Option<String>,
}Expand description
Final payload block returning all gathered data for a task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.success: boolTrue if fetch succeeded.
data: Option<Vec<SqlmapDataChunk>>The aggregated data chunks representing injection results.
error: Option<Vec<String>>Array of structured errors from the engine.
message: Option<String>Error or informational message when success is false.
Implementations§
Source§impl DataResponse
impl DataResponse
Sourcepub fn findings(&self) -> Vec<SqlmapFinding>
pub fn findings(&self) -> Vec<SqlmapFinding>
Extract structured findings from the raw data chunks.
Type 1 chunks are sqlmapapi TECHNIQUES payloads: each value entry is an
injection point with a nested data[] of {title|technique, payload}.
Flat legacy objects with top-level type/payload are still accepted.
Trait Implementations§
Source§impl Clone for DataResponse
impl Clone for DataResponse
Source§fn clone(&self) -> DataResponse
fn clone(&self) -> DataResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataResponse
impl Debug for DataResponse
Source§impl<'de> Deserialize<'de> for DataResponse
impl<'de> Deserialize<'de> for DataResponse
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
Auto Trait Implementations§
impl Freeze for DataResponse
impl RefUnwindSafe for DataResponse
impl Send for DataResponse
impl Sync for DataResponse
impl Unpin for DataResponse
impl UnsafeUnpin for DataResponse
impl UnwindSafe for DataResponse
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