pub struct AssessmentsParametersBuilder { /* private fields */ }
Expand description
Builder for AssessmentsParameters
.
Implementations§
Source§impl AssessmentsParametersBuilder
impl AssessmentsParametersBuilder
Sourcepub fn id<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
The UUID of a specific assessment to return. Example: c0f010fe-da9c-4aa6-b898-c57d483df51b
Sourcepub fn editor_id<VALUE: Into<Option<Uuid>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn editor_id<VALUE: Into<Option<Uuid>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of a contributor. Example: c28a806c-84c7-44bf-95d3-1241475de5bf
Sourcepub fn topic_id<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn topic_id<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
The UUID of the topic this assessment was based on. Example: c28a806c-84c7-44bf-95d3-1241475de5bf
Sourcepub fn created<VALUE: Into<Option<NaiveDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn created<VALUE: Into<Option<NaiveDate>>>( &mut self, value: VALUE, ) -> &mut Self
Return all assessments that were created on the given date. Example: 2019-07-04
Sourcepub fn created_after<VALUE: Into<Option<NaiveDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn created_after<VALUE: Into<Option<NaiveDate>>>( &mut self, value: VALUE, ) -> &mut Self
Return all assessments that were created after the given date. Example: 2019-07-04
Sourcepub fn created_before<VALUE: Into<Option<NaiveDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn created_before<VALUE: Into<Option<NaiveDate>>>( &mut self, value: VALUE, ) -> &mut Self
Return all assessments that were created before the given date. Example: 2019-07-04
Sourcepub fn revision_date<VALUE: Into<Option<NaiveDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn revision_date<VALUE: Into<Option<NaiveDate>>>( &mut self, value: VALUE, ) -> &mut Self
Return all assessments that were last edited on the given date. Example: 2019-07-04
Sourcepub fn revised_after<VALUE: Into<Option<NaiveDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn revised_after<VALUE: Into<Option<NaiveDate>>>( &mut self, value: VALUE, ) -> &mut Self
Return all assessments that were last edited after the given date. Example: 2019-07-04
Sourcepub fn revised_before<VALUE: Into<Option<NaiveDate>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn revised_before<VALUE: Into<Option<NaiveDate>>>( &mut self, value: VALUE, ) -> &mut Self
Return all assessments that were last edited before the given date. Example: 2019-07-04
Sourcepub fn document<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn document<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Return all topics that were disclosed on the given date. Example: 2019-07-04
Sourcepub fn score<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
pub fn score<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
Return all assessments with this score.
Sourcepub fn metadata<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn metadata<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Text to query the metadata attribute. A substring match is performed Example : metasploit
Sourcepub fn q<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn q<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Return all assessments that have content that matches the query string q.
Sourcepub fn page<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn page<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
Pagination page number. Default value : 0
Sourcepub fn size<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
The number of topics returned per page. Default value : 10
Sourcepub fn sort<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn sort<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Sort by assessment attribute. This parameter takes the form attribute:order. attribute: id, editorId, created, revisionDate, document, score, metadata order: asc (ascending), desc (descending) Each attribute is sorted by its respective type.
Sourcepub fn expand<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn expand<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Comma separated list of related objects to fully expand in the returned result. Only the id of related objects will be included if this parameter is not specified.
Sourcepub fn build(
&self,
) -> Result<AssessmentsParameters, AssessmentsParametersBuilderError>
pub fn build( &self, ) -> Result<AssessmentsParameters, AssessmentsParametersBuilderError>
Trait Implementations§
Source§impl Clone for AssessmentsParametersBuilder
impl Clone for AssessmentsParametersBuilder
Source§fn clone(&self) -> AssessmentsParametersBuilder
fn clone(&self) -> AssessmentsParametersBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more