pub struct ContributorsParametersBuilder { /* private fields */ }
Expand description
Builder for ContributorsParameters
.
Implementations§
Source§impl ContributorsParametersBuilder
impl ContributorsParametersBuilder
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 contributor to return. Example: c0f010fe-da9c-4aa6-b898-c57d483df51b
Sourcepub fn username<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn username<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Return contributors with the matching username. Example: c28a806c-84c7-44bf-95d3-1241475de5bf
Sourcepub fn avatar<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn avatar<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
Return all contributors where avatar matches the given value. 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 contributors 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 contributors 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 contributors that were created before 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 contributors with this score.
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 contributors that have usernames that match 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 contributor attribute. This parameter takes the form attribute:order. attribute: id, username, avatar, created, score. order: asc (ascending), desc (descending) Each attribute is sorted by its respective type.
Sourcepub fn build(
&self,
) -> Result<ContributorsParameters, ContributorsParametersBuilderError>
pub fn build( &self, ) -> Result<ContributorsParameters, ContributorsParametersBuilderError>
Trait Implementations§
Source§impl Clone for ContributorsParametersBuilder
impl Clone for ContributorsParametersBuilder
Source§fn clone(&self) -> ContributorsParametersBuilder
fn clone(&self) -> ContributorsParametersBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more