Struct ListVulnerabilitiesOptionalParams

Source
#[non_exhaustive]
pub struct ListVulnerabilitiesOptionalParams {
Show 42 fields pub page_token: Option<String>, pub page_number: Option<i64>, pub filter_type: Option<VulnerabilityType>, pub filter_cvss_base_score_op: Option<f64>, pub filter_cvss_base_severity: Option<VulnerabilitySeverity>, pub filter_cvss_base_vector: Option<String>, pub filter_cvss_datadog_score_op: Option<f64>, pub filter_cvss_datadog_severity: Option<VulnerabilitySeverity>, pub filter_cvss_datadog_vector: Option<String>, pub filter_status: Option<VulnerabilityStatus>, pub filter_tool: Option<VulnerabilityTool>, pub filter_library_name: Option<String>, pub filter_library_version: Option<String>, pub filter_advisory_id: Option<String>, pub filter_risks_exploitation_probability: Option<bool>, pub filter_risks_poc_exploit_available: Option<bool>, pub filter_risks_exploit_available: Option<bool>, pub filter_risks_epss_score_op: Option<f64>, pub filter_risks_epss_severity: Option<VulnerabilitySeverity>, pub filter_language: Option<String>, pub filter_ecosystem: Option<VulnerabilityEcosystem>, pub filter_code_location_location: Option<String>, pub filter_code_location_file_path: Option<String>, pub filter_code_location_method: Option<String>, pub filter_fix_available: Option<bool>, pub filter_repo_digests: Option<String>, pub filter_origin: Option<String>, pub filter_asset_name: Option<String>, pub filter_asset_type: Option<AssetType>, pub filter_asset_version_first: Option<String>, pub filter_asset_version_last: Option<String>, pub filter_asset_repository_url: Option<String>, pub filter_asset_risks_in_production: Option<bool>, pub filter_asset_risks_under_attack: Option<bool>, pub filter_asset_risks_is_publicly_accessible: Option<bool>, pub filter_asset_risks_has_privileged_access: Option<bool>, pub filter_asset_risks_has_access_to_sensitive_data: Option<bool>, pub filter_asset_environments: Option<String>, pub filter_asset_teams: Option<String>, pub filter_asset_arch: Option<String>, pub filter_asset_operating_system_name: Option<String>, pub filter_asset_operating_system_version: Option<String>,
}
Expand description

ListVulnerabilitiesOptionalParams is a struct for passing parameters to the method SecurityMonitoringAPI::list_vulnerabilities

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.
§page_token: Option<String>

Its value must come from the links section of the response of the first request. Do not manually edit it.

§page_number: Option<i64>

The page number to be retrieved. It should be equal or greater than 1

§filter_type: Option<VulnerabilityType>

Filter by vulnerability type.

§filter_cvss_base_score_op: Option<f64>

Filter by vulnerability base (i.e. from the original advisory) severity score.

§filter_cvss_base_severity: Option<VulnerabilitySeverity>

Filter by vulnerability base severity.

§filter_cvss_base_vector: Option<String>

Filter by vulnerability base CVSS vector.

§filter_cvss_datadog_score_op: Option<f64>

Filter by vulnerability Datadog severity score.

§filter_cvss_datadog_severity: Option<VulnerabilitySeverity>

Filter by vulnerability Datadog severity.

§filter_cvss_datadog_vector: Option<String>

Filter by vulnerability Datadog CVSS vector.

§filter_status: Option<VulnerabilityStatus>

Filter by the status of the vulnerability.

§filter_tool: Option<VulnerabilityTool>

Filter by the tool of the vulnerability.

§filter_library_name: Option<String>

Filter by library name.

§filter_library_version: Option<String>

Filter by library version.

§filter_advisory_id: Option<String>

Filter by advisory ID.

§filter_risks_exploitation_probability: Option<bool>

Filter by exploitation probability.

§filter_risks_poc_exploit_available: Option<bool>

Filter by POC exploit availability.

§filter_risks_exploit_available: Option<bool>

Filter by public exploit availability.

§filter_risks_epss_score_op: Option<f64>

Filter by vulnerability EPSS severity score.

§filter_risks_epss_severity: Option<VulnerabilitySeverity>

Filter by vulnerability EPSS severity.

§filter_language: Option<String>

Filter by language.

§filter_ecosystem: Option<VulnerabilityEcosystem>

Filter by ecosystem.

§filter_code_location_location: Option<String>

Filter by vulnerability location.

§filter_code_location_file_path: Option<String>

Filter by vulnerability file path.

§filter_code_location_method: Option<String>

Filter by method.

§filter_fix_available: Option<bool>

Filter by fix availability.

§filter_repo_digests: Option<String>

Filter by vulnerability repo_digest (when the vulnerability is related to Image asset).

§filter_origin: Option<String>

Filter by origin.

§filter_asset_name: Option<String>

Filter by asset name.

§filter_asset_type: Option<AssetType>

Filter by asset type.

§filter_asset_version_first: Option<String>

Filter by the first version of the asset this vulnerability has been detected on.

§filter_asset_version_last: Option<String>

Filter by the last version of the asset this vulnerability has been detected on.

§filter_asset_repository_url: Option<String>

Filter by the repository url associated to the asset.

§filter_asset_risks_in_production: Option<bool>

Filter whether the asset is in production or not.

§filter_asset_risks_under_attack: Option<bool>

Filter whether the asset is under attack or not.

§filter_asset_risks_is_publicly_accessible: Option<bool>

Filter whether the asset is publicly accessible or not.

§filter_asset_risks_has_privileged_access: Option<bool>

Filter whether the asset is publicly accessible or not.

§filter_asset_risks_has_access_to_sensitive_data: Option<bool>

Filter whether the asset has access to sensitive data or not.

§filter_asset_environments: Option<String>

Filter by asset environments.

§filter_asset_teams: Option<String>

Filter by asset teams.

§filter_asset_arch: Option<String>

Filter by asset architecture.

§filter_asset_operating_system_name: Option<String>

Filter by asset operating system name.

§filter_asset_operating_system_version: Option<String>

Filter by asset operating system version.

Implementations§

Source§

impl ListVulnerabilitiesOptionalParams

Source

pub fn page_token(self, value: String) -> Self

Its value must come from the links section of the response of the first request. Do not manually edit it.

Source

pub fn page_number(self, value: i64) -> Self

The page number to be retrieved. It should be equal or greater than 1

Source

pub fn filter_type(self, value: VulnerabilityType) -> Self

Filter by vulnerability type.

Source

pub fn filter_cvss_base_score_op(self, value: f64) -> Self

Filter by vulnerability base (i.e. from the original advisory) severity score.

Source

pub fn filter_cvss_base_severity(self, value: VulnerabilitySeverity) -> Self

Filter by vulnerability base severity.

Examples found in repository?
examples/v2_security-monitoring_ListVulnerabilities.rs (line 17)
10async fn main() {
11    let mut configuration = datadog::Configuration::new();
12    configuration.set_unstable_operation_enabled("v2.ListVulnerabilities", true);
13    let api = SecurityMonitoringAPI::with_config(configuration);
14    let resp = api
15        .list_vulnerabilities(
16            ListVulnerabilitiesOptionalParams::default()
17                .filter_cvss_base_severity(VulnerabilitySeverity::HIGH)
18                .filter_asset_type(AssetType::SERVICE)
19                .filter_tool(VulnerabilityTool::INFRA),
20        )
21        .await;
22    if let Ok(value) = resp {
23        println!("{:#?}", value);
24    } else {
25        println!("{:#?}", resp.unwrap_err());
26    }
27}
Source

pub fn filter_cvss_base_vector(self, value: String) -> Self

Filter by vulnerability base CVSS vector.

Source

pub fn filter_cvss_datadog_score_op(self, value: f64) -> Self

Filter by vulnerability Datadog severity score.

Source

pub fn filter_cvss_datadog_severity(self, value: VulnerabilitySeverity) -> Self

Filter by vulnerability Datadog severity.

Source

pub fn filter_cvss_datadog_vector(self, value: String) -> Self

Filter by vulnerability Datadog CVSS vector.

Source

pub fn filter_status(self, value: VulnerabilityStatus) -> Self

Filter by the status of the vulnerability.

Source

pub fn filter_tool(self, value: VulnerabilityTool) -> Self

Filter by the tool of the vulnerability.

Examples found in repository?
examples/v2_security-monitoring_ListVulnerabilities.rs (line 19)
10async fn main() {
11    let mut configuration = datadog::Configuration::new();
12    configuration.set_unstable_operation_enabled("v2.ListVulnerabilities", true);
13    let api = SecurityMonitoringAPI::with_config(configuration);
14    let resp = api
15        .list_vulnerabilities(
16            ListVulnerabilitiesOptionalParams::default()
17                .filter_cvss_base_severity(VulnerabilitySeverity::HIGH)
18                .filter_asset_type(AssetType::SERVICE)
19                .filter_tool(VulnerabilityTool::INFRA),
20        )
21        .await;
22    if let Ok(value) = resp {
23        println!("{:#?}", value);
24    } else {
25        println!("{:#?}", resp.unwrap_err());
26    }
27}
Source

pub fn filter_library_name(self, value: String) -> Self

Filter by library name.

Source

pub fn filter_library_version(self, value: String) -> Self

Filter by library version.

Source

pub fn filter_advisory_id(self, value: String) -> Self

Filter by advisory ID.

Source

pub fn filter_risks_exploitation_probability(self, value: bool) -> Self

Filter by exploitation probability.

Source

pub fn filter_risks_poc_exploit_available(self, value: bool) -> Self

Filter by POC exploit availability.

Source

pub fn filter_risks_exploit_available(self, value: bool) -> Self

Filter by public exploit availability.

Source

pub fn filter_risks_epss_score_op(self, value: f64) -> Self

Filter by vulnerability EPSS severity score.

Source

pub fn filter_risks_epss_severity(self, value: VulnerabilitySeverity) -> Self

Filter by vulnerability EPSS severity.

Source

pub fn filter_language(self, value: String) -> Self

Filter by language.

Source

pub fn filter_ecosystem(self, value: VulnerabilityEcosystem) -> Self

Filter by ecosystem.

Source

pub fn filter_code_location_location(self, value: String) -> Self

Filter by vulnerability location.

Source

pub fn filter_code_location_file_path(self, value: String) -> Self

Filter by vulnerability file path.

Source

pub fn filter_code_location_method(self, value: String) -> Self

Filter by method.

Source

pub fn filter_fix_available(self, value: bool) -> Self

Filter by fix availability.

Source

pub fn filter_repo_digests(self, value: String) -> Self

Filter by vulnerability repo_digest (when the vulnerability is related to Image asset).

Source

pub fn filter_origin(self, value: String) -> Self

Filter by origin.

Source

pub fn filter_asset_name(self, value: String) -> Self

Filter by asset name.

Source

pub fn filter_asset_type(self, value: AssetType) -> Self

Filter by asset type.

Examples found in repository?
examples/v2_security-monitoring_ListVulnerabilities.rs (line 18)
10async fn main() {
11    let mut configuration = datadog::Configuration::new();
12    configuration.set_unstable_operation_enabled("v2.ListVulnerabilities", true);
13    let api = SecurityMonitoringAPI::with_config(configuration);
14    let resp = api
15        .list_vulnerabilities(
16            ListVulnerabilitiesOptionalParams::default()
17                .filter_cvss_base_severity(VulnerabilitySeverity::HIGH)
18                .filter_asset_type(AssetType::SERVICE)
19                .filter_tool(VulnerabilityTool::INFRA),
20        )
21        .await;
22    if let Ok(value) = resp {
23        println!("{:#?}", value);
24    } else {
25        println!("{:#?}", resp.unwrap_err());
26    }
27}
Source

pub fn filter_asset_version_first(self, value: String) -> Self

Filter by the first version of the asset this vulnerability has been detected on.

Source

pub fn filter_asset_version_last(self, value: String) -> Self

Filter by the last version of the asset this vulnerability has been detected on.

Source

pub fn filter_asset_repository_url(self, value: String) -> Self

Filter by the repository url associated to the asset.

Source

pub fn filter_asset_risks_in_production(self, value: bool) -> Self

Filter whether the asset is in production or not.

Source

pub fn filter_asset_risks_under_attack(self, value: bool) -> Self

Filter whether the asset is under attack or not.

Source

pub fn filter_asset_risks_is_publicly_accessible(self, value: bool) -> Self

Filter whether the asset is publicly accessible or not.

Source

pub fn filter_asset_risks_has_privileged_access(self, value: bool) -> Self

Filter whether the asset is publicly accessible or not.

Source

pub fn filter_asset_risks_has_access_to_sensitive_data( self, value: bool, ) -> Self

Filter whether the asset has access to sensitive data or not.

Source

pub fn filter_asset_environments(self, value: String) -> Self

Filter by asset environments.

Source

pub fn filter_asset_teams(self, value: String) -> Self

Filter by asset teams.

Source

pub fn filter_asset_arch(self, value: String) -> Self

Filter by asset architecture.

Source

pub fn filter_asset_operating_system_name(self, value: String) -> Self

Filter by asset operating system name.

Source

pub fn filter_asset_operating_system_version(self, value: String) -> Self

Filter by asset operating system version.

Trait Implementations§

Source§

impl Clone for ListVulnerabilitiesOptionalParams

Source§

fn clone(&self) -> ListVulnerabilitiesOptionalParams

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListVulnerabilitiesOptionalParams

Source§

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

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

impl Default for ListVulnerabilitiesOptionalParams

Source§

fn default() -> ListVulnerabilitiesOptionalParams

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,