pub struct FindingsApi { /* private fields */ }Expand description
Findings API client
Implementations§
Source§impl FindingsApi
impl FindingsApi
Sourcepub fn new(client: VeracodeClient) -> Self
pub fn new(client: VeracodeClient) -> Self
Create new findings API client
Sourcepub async fn get_findings(
&self,
query: &FindingsQuery<'_>,
) -> Result<FindingsResponse, FindingsError>
pub async fn get_findings( &self, query: &FindingsQuery<'_>, ) -> Result<FindingsResponse, FindingsError>
Get findings with pagination
§Errors
Returns an error if the API request fails, the findings cannot be retrieved, or authentication/authorization fails.
Sourcepub async fn get_all_findings(
&self,
query: &FindingsQuery<'_>,
) -> Result<Vec<RestFinding>, FindingsError>
pub async fn get_all_findings( &self, query: &FindingsQuery<'_>, ) -> Result<Vec<RestFinding>, FindingsError>
Get all findings across all pages automatically
§Errors
Returns an error if the API request fails, the findings cannot be retrieved, or authentication/authorization fails.
Sourcepub async fn get_policy_findings(
&self,
app_guid: &str,
) -> Result<FindingsResponse, FindingsError>
pub async fn get_policy_findings( &self, app_guid: &str, ) -> Result<FindingsResponse, FindingsError>
Get policy scan findings (convenience method)
§Errors
Returns an error if the API request fails, the findings cannot be retrieved, or authentication/authorization fails.
Sourcepub async fn get_sandbox_findings(
&self,
app_guid: &str,
sandbox_guid: &str,
) -> Result<FindingsResponse, FindingsError>
pub async fn get_sandbox_findings( &self, app_guid: &str, sandbox_guid: &str, ) -> Result<FindingsResponse, FindingsError>
Get sandbox findings (convenience method)
§Errors
Returns an error if the API request fails, the findings cannot be retrieved, or authentication/authorization fails.
Sourcepub async fn get_all_policy_findings(
&self,
app_guid: &str,
) -> Result<Vec<RestFinding>, FindingsError>
pub async fn get_all_policy_findings( &self, app_guid: &str, ) -> Result<Vec<RestFinding>, FindingsError>
Get all policy scan findings (convenience method)
§Errors
Returns an error if the API request fails, the findings cannot be retrieved, or authentication/authorization fails.
Sourcepub async fn get_all_sandbox_findings(
&self,
app_guid: &str,
sandbox_guid: &str,
) -> Result<Vec<RestFinding>, FindingsError>
pub async fn get_all_sandbox_findings( &self, app_guid: &str, sandbox_guid: &str, ) -> Result<Vec<RestFinding>, FindingsError>
Get all sandbox findings (convenience method)
§Errors
Returns an error if the API request fails, the findings cannot be retrieved, or authentication/authorization fails.
Trait Implementations§
Source§impl Clone for FindingsApi
impl Clone for FindingsApi
Source§fn clone(&self) -> FindingsApi
fn clone(&self) -> FindingsApi
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more