pub struct ContributorsParameters {
pub id: Option<Uuid>,
pub username: Option<String>,
pub avatar: Option<Uuid>,
pub created: Option<NaiveDate>,
pub created_after: Option<NaiveDate>,
pub created_before: Option<NaiveDate>,
pub score: Option<i32>,
pub q: Option<String>,
pub page: i32,
pub size: i32,
pub sort: Option<String>,
}
Fields§
§id: Option<Uuid>
The UUID of a specific contributor to return. Example: c0f010fe-da9c-4aa6-b898-c57d483df51b
username: Option<String>
Return contributors with the matching username. Example: c28a806c-84c7-44bf-95d3-1241475de5bf
avatar: Option<Uuid>
Return all contributors where avatar matches the given value. Example: c28a806c-84c7-44bf-95d3-1241475de5bf
created: Option<NaiveDate>
Return all contributors that were created on the given date. Example: 2019-07-04
created_after: Option<NaiveDate>
Return all contributors that were created after the given date. Example: 2019-07-04
created_before: Option<NaiveDate>
Return all contributors that were created before the given date. Example: 2019-07-04
score: Option<i32>
Return all contributors with this score.
q: Option<String>
Return all contributors that have usernames that match the query string q.
page: i32
Pagination page number. Default value : 0
size: i32
The number of topics returned per page. Default value : 10
sort: Option<String>
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.
Trait Implementations§
Source§impl Clone for ContributorsParameters
impl Clone for ContributorsParameters
Source§fn clone(&self) -> ContributorsParameters
fn clone(&self) -> ContributorsParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more