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”, “git_size”, “lfs_size”, “stars”, “forks” 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
impl StructuralPartialEq for RepoSearchQuery
Auto Trait Implementations§
impl Freeze for RepoSearchQuery
impl RefUnwindSafe for RepoSearchQuery
impl Send for RepoSearchQuery
impl Sync for RepoSearchQuery
impl Unpin for RepoSearchQuery
impl UnwindSafe for RepoSearchQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.