Struct attackerkb_api_rs::v1::query::ContributorsParameters
source · 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 moresource§impl Debug for ContributorsParameters
impl Debug for ContributorsParameters
source§impl Default for ContributorsParameters
impl Default for ContributorsParameters
source§impl<'de> Deserialize<'de> for ContributorsParameters
impl<'de> Deserialize<'de> for ContributorsParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for ContributorsParameters
impl PartialEq for ContributorsParameters
source§fn eq(&self, other: &ContributorsParameters) -> bool
fn eq(&self, other: &ContributorsParameters) -> bool
self
and other
values to be equal, and is used
by ==
.