pub struct FindingsQuery<'a> {
pub app_guid: Cow<'a, str>,
pub context: Option<Cow<'a, str>>,
pub page: Option<u32>,
pub size: Option<u32>,
pub severity: Option<Vec<u32>>,
pub cwe_id: Option<Vec<String>>,
pub scan_type: Option<Cow<'a, str>>,
pub violates_policy: Option<bool>,
}Expand description
Query parameters for findings API
Fields§
§app_guid: Cow<'a, str>Application GUID
context: Option<Cow<'a, str>>Context (sandbox GUID for sandbox scans, None for policy scans)
page: Option<u32>Page number (0-based)
size: Option<u32>Items per page
severity: Option<Vec<u32>>Filter by severity levels
cwe_id: Option<Vec<String>>Filter by CWE IDs
scan_type: Option<Cow<'a, str>>Filter by scan type
violates_policy: Option<bool>Filter by policy violations only
Implementations§
Source§impl<'a> FindingsQuery<'a>
impl<'a> FindingsQuery<'a>
Sourcepub fn for_sandbox(app_guid: &'a str, sandbox_guid: &'a str) -> Self
pub fn for_sandbox(app_guid: &'a str, sandbox_guid: &'a str) -> Self
Create new query for sandbox scan findings
Sourcepub fn with_sandbox(self, sandbox_guid: &'a str) -> Self
pub fn with_sandbox(self, sandbox_guid: &'a str) -> Self
Add sandbox context to existing query
Sourcepub fn with_pagination(self, page: u32, size: u32) -> Self
pub fn with_pagination(self, page: u32, size: u32) -> Self
Add pagination parameters
Sourcepub fn with_severity(self, severity: Vec<u32>) -> Self
pub fn with_severity(self, severity: Vec<u32>) -> Self
Filter by severity levels (0-5)
Sourcepub fn with_scan_type(self, scan_type: &'a str) -> Self
pub fn with_scan_type(self, scan_type: &'a str) -> Self
Filter by scan type
Sourcepub fn policy_violations_only(self) -> Self
pub fn policy_violations_only(self) -> Self
Filter to policy violations only
Trait Implementations§
Source§impl<'a> Clone for FindingsQuery<'a>
impl<'a> Clone for FindingsQuery<'a>
Source§fn clone(&self) -> FindingsQuery<'a>
fn clone(&self) -> FindingsQuery<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for FindingsQuery<'a>
impl<'a> RefUnwindSafe for FindingsQuery<'a>
impl<'a> Send for FindingsQuery<'a>
impl<'a> Sync for FindingsQuery<'a>
impl<'a> Unpin for FindingsQuery<'a>
impl<'a> UnwindSafe for FindingsQuery<'a>
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