pub struct CveParametersBuilder { /* private fields */ }Expand description
Builder for CveParameters.
Implementations§
Source§impl CveParametersBuilder
impl CveParametersBuilder
Sourcepub fn cpe_name<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpe_name<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns all CVE associated with a specific CPE. The exact value provided with cpeName is compared against the CPE Match Criteria within a CVE applicability statement. If the value of cpeName is considered to match, the CVE is included in the results.
Sourcepub fn cve_id<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn cve_id<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
This parameter returns a specific vulnerability identified by its unique Common Vulnerabilities and Exposures identifier (the CVE ID). cveId will not accept {CVE-ID} for vulnerabilities not yet published in the NVD.
Sourcepub fn cvss_v2_metrics<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cvss_v2_metrics<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns only the CVEs that match the provided {CVSSv2 vector string}. Either full or partial vector strings may be used. This parameter cannot be used in requests that include cvssV3Metrics.
Sourcepub fn cvss_v2_severity<VALUE: Into<Option<SeverityTypeV2>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cvss_v2_severity<VALUE: Into<Option<SeverityTypeV2>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns only the CVEs that match the provided CVSSv2 qualitative severity rating. This parameter cannot be used in requests that include cvssV3Severity.
Sourcepub fn cvss_v3_metrics<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cvss_v3_metrics<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns only the CVEs that match the provided {CVSSv3 vector string}. Either full or partial vector strings may be used. This parameter cannot be used in requests that include cvssV2Metrics.
Sourcepub fn cvss_v3_severity<VALUE: Into<Option<SeverityType>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cvss_v3_severity<VALUE: Into<Option<SeverityType>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns only the CVEs that match the provided CVSSv3 qualitative severity rating. This parameter cannot be used in requests that include cvssV2Severity. Note: The NVD will not contain CVSS v3 vector strings with a severity of NONE. This is why that severity is not an included option.
Sourcepub fn cwe_id<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn cwe_id<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
This parameter returns only the CVE that include a weakness identified by Common Weakness Enumeration using the provided {CWE-ID}. Note: The NVD also makes use of two placeholder CWE-ID values NVD-CWE-Other and NVD-CWE-noinfo which can also be used.
Sourcepub fn has_cert_alerts<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn has_cert_alerts<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns the CVE that contain a Technical Alert from US-CERT. Please note, this parameter is provided without a parameter value.
Sourcepub fn has_cert_notes<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn has_cert_notes<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns the CVE that contain a Vulnerability Note from CERT/CC. Please note, this parameter is provided without a parameter value.
Sourcepub fn has_kev<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn has_kev<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
This parameter returns the CVE that appear in CISA’s Known Exploited Vulnerabilities (KEV) Catalog. Please note, this parameter is provided without a parameter value.
Sourcepub fn has_oval<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn has_oval<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
This parameter returns the CVE that contain information from MITRE’s Open Vulnerability and Assessment Language (OVAL) before this transitioned to the Center for Internet Security (CIS). Please note, this parameter is provided without a parameter value.
Sourcepub fn is_vulnerable<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn is_vulnerable<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns only CVE associated with a specific CPE, where the CPE is also considered vulnerable. The exact value provided with cpeName is compared against the CPE Match Criteria within a CVE applicability statement. If the value of cpeName is considered to match, and is also considered vulnerable the CVE is included in the results.
Sourcepub fn keyword<VALUE: Into<Option<Keyword>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn keyword<VALUE: Into<Option<Keyword>>>( &mut self, value: VALUE, ) -> &mut Self
keyword Keyword
Sourcepub fn last_mod<VALUE: Into<Option<LastModDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn last_mod<VALUE: Into<Option<LastModDate>>>( &mut self, value: VALUE, ) -> &mut Self
last_mod LastModDate
Sourcepub fn no_rejected<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn no_rejected<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
By default, the CVE API includes CVE records with the REJECT or Rejected status. This parameter excludes CVE records with the REJECT or Rejected status from API response. Please note, this parameter is provided without a parameter value.
Sourcepub fn pub_date<VALUE: Into<Option<PubDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn pub_date<VALUE: Into<Option<PubDate>>>( &mut self, value: VALUE, ) -> &mut Self
pub_date PubDate
Sourcepub fn limit_offset<VALUE: Into<Option<LimitOffset>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn limit_offset<VALUE: Into<Option<LimitOffset>>>( &mut self, value: VALUE, ) -> &mut Self
limit_offset LimitOffset
Sourcepub fn source_identifier<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source_identifier<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
This parameter returns CVE where the exact value of {sourceIdentifier} appears as a data source in the CVE record. The CVE API returns {sourceIdentifier} values within the descriptions object. The Source API returns detailed information on the organizations that provide the data contained in the NVD dataset, including every valid {sourceIdentifier} value.
Sourcepub fn virtual_match<VALUE: Into<Option<VirtualMatch>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn virtual_match<VALUE: Into<Option<VirtualMatch>>>( &mut self, value: VALUE, ) -> &mut Self
virtual_match VirtualMatch
Sourcepub fn build(&self) -> Result<CveParameters, CveParametersBuilderError>
pub fn build(&self) -> Result<CveParameters, CveParametersBuilderError>
Trait Implementations§
Source§impl Clone for CveParametersBuilder
impl Clone for CveParametersBuilder
Source§fn clone(&self) -> CveParametersBuilder
fn clone(&self) -> CveParametersBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more