Struct forgejo_api::structs::RepoSearchQuery
source · pub struct RepoSearchQuery {Show 17 fields
pub q: Option<String>,
pub topic: Option<bool>,
pub include_desc: Option<bool>,
pub uid: Option<u64>,
pub priority_owner_id: Option<u64>,
pub team_id: Option<u64>,
pub starred_by: Option<u64>,
pub private: Option<bool>,
pub is_private: Option<bool>,
pub template: Option<bool>,
pub archived: Option<bool>,
pub mode: Option<String>,
pub exclusive: Option<bool>,
pub sort: Option<String>,
pub order: Option<String>,
pub page: Option<u32>,
pub limit: Option<u32>,
}Fields§
§q: Option<String>keyword
topic: Option<bool>Limit search to repositories with keyword as topic
include_desc: Option<bool>include search of keyword within repository description
uid: Option<u64>search only for repos that the user with the given id owns or contributes to
priority_owner_id: Option<u64>repo owner to prioritize in the results
team_id: Option<u64>search only for repos that belong to the given team id
starred_by: Option<u64>search only for repos that the user with the given id has starred
private: Option<bool>include private repositories this user has access to (defaults to true)
is_private: Option<bool>show only pubic, private or all repositories (defaults to all)
template: Option<bool>include template repositories this user has access to (defaults to true)
archived: Option<bool>show only archived, non-archived or all repositories (defaults to all)
mode: Option<String>type of repository to search for. Supported values are “fork”, “source”, “mirror” and “collaborative”
exclusive: Option<bool>if uid is given, search only for repos that the user owns
sort: Option<String>sort repos by attribute. Supported values are “alpha”, “created”, “updated”, “size”, and “id”. Default is “alpha”
order: Option<String>sort order, either “asc” (ascending) or “desc” (descending). Default is “asc”, ignored if “sort” is not specified.
page: Option<u32>page number of results to return (1-based)
limit: Option<u32>page size of results
Trait Implementations§
source§impl Clone for RepoSearchQuery
impl Clone for RepoSearchQuery
source§fn clone(&self) -> RepoSearchQuery
fn clone(&self) -> RepoSearchQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RepoSearchQuery
impl Debug for RepoSearchQuery
source§impl Default for RepoSearchQuery
impl Default for RepoSearchQuery
source§fn default() -> RepoSearchQuery
fn default() -> RepoSearchQuery
source§impl Display for RepoSearchQuery
impl Display for RepoSearchQuery
source§impl PartialEq for RepoSearchQuery
impl PartialEq for RepoSearchQuery
source§fn eq(&self, other: &RepoSearchQuery) -> bool
fn eq(&self, other: &RepoSearchQuery) -> bool
self and other values to be equal, and is used
by ==.