CveParametersBuilder

Struct CveParametersBuilder 

Source
pub struct CveParametersBuilder { /* private fields */ }
Expand description

Builder for CveParameters.

Implementations§

Source§

impl CveParametersBuilder

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn keyword<VALUE: Into<Option<Keyword>>>( &mut self, value: VALUE, ) -> &mut Self

keyword Keyword

Source

pub fn last_mod<VALUE: Into<Option<LastModDate>>>( &mut self, value: VALUE, ) -> &mut Self

last_mod LastModDate

Source

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.

Source

pub fn pub_date<VALUE: Into<Option<PubDate>>>( &mut self, value: VALUE, ) -> &mut Self

pub_date PubDate

Source

pub fn limit_offset<VALUE: Into<Option<LimitOffset>>>( &mut self, value: VALUE, ) -> &mut Self

limit_offset LimitOffset

Source

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.

Source

pub fn virtual_match<VALUE: Into<Option<VirtualMatch>>>( &mut self, value: VALUE, ) -> &mut Self

virtual_match VirtualMatch

Source

pub fn build(&self) -> Result<CveParameters, CveParametersBuilderError>

Builds a new CveParameters.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for CveParametersBuilder

Source§

fn clone(&self) -> CveParametersBuilder

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 Default for CveParametersBuilder

Source§

fn default() -> Self

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<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