pub struct SearchRepositoriesBuilder {Show 17 fields
pub query: Option<String>,
pub topic: Option<bool>,
pub include_desc: Option<bool>,
pub uid: Option<i64>,
pub priority_owner_id: Option<i64>,
pub team_id: Option<i64>,
pub starred_by: Option<i64>,
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<i32>,
pub limit: Option<i32>,
}
Expand description
Options for searching repositories. All fields are optional.
Fields§
§query: Option<String>
Keyword to search for
topic: Option<bool>
Limit search to repositories with keyword as topic
include_desc: Option<bool>
Include search of keyword within repository description
uid: Option<i64>
Search only for repos that the user with the given id owns or contributes to
priority_owner_id: Option<i64>
Repo owner to prioritize in the results
team_id: Option<i64>
Search only for repos that belong to the given team id
starred_by: Option<i64>
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<i32>
Page number of results to return (1-based)
limit: Option<i32>
Page size of results
Implementations§
source§impl SearchRepositoriesBuilder
impl SearchRepositoriesBuilder
sourcepub fn include_desc(self, include_desc: bool) -> Self
pub fn include_desc(self, include_desc: bool) -> Self
Include search of keyword within repository description
sourcepub fn uid(self, uid: i64) -> Self
pub fn uid(self, uid: i64) -> Self
Search only for repos that the user with the given id owns or contributes to
sourcepub fn priority_owner_id(self, priority_owner_id: i64) -> Self
pub fn priority_owner_id(self, priority_owner_id: i64) -> Self
Repo owner to prioritize in the results
sourcepub fn team_id(self, team_id: i64) -> Self
pub fn team_id(self, team_id: i64) -> Self
Search only for repos that belong to the given team id
sourcepub fn starred_by(self, starred_by: i64) -> Self
pub fn starred_by(self, starred_by: i64) -> Self
Search only for repos that the user with the given id has starred
sourcepub fn private(self, private: bool) -> Self
pub fn private(self, private: bool) -> Self
Include private repositories this user has access to (defaults to true)
sourcepub fn is_private(self, is_private: bool) -> Self
pub fn is_private(self, is_private: bool) -> Self
Show only pubic, private or all repositories (defaults to all)
sourcepub fn template(self, template: bool) -> Self
pub fn template(self, template: bool) -> Self
Include template repositories this user has access to (defaults to true)
sourcepub fn archived(self, archived: bool) -> Self
pub fn archived(self, archived: bool) -> Self
Show only archived, non-archived or all repositories (defaults to all)
sourcepub fn mode(self, mode: String) -> Self
pub fn mode(self, mode: String) -> Self
Type of repository to search for. Supported values are “fork”, “source”, “mirror” and “collaborative”
sourcepub fn exclusive(self, exclusive: bool) -> Self
pub fn exclusive(self, exclusive: bool) -> Self
If uid is given, search only for repos that the user owns
sourcepub fn sort(self, sort: String) -> Self
pub fn sort(self, sort: String) -> Self
Sort repos by attribute. Supported values are “alpha”, “created”, “updated”, “size”, and “id”. Default is “alpha”
source§impl SearchRepositoriesBuilder
impl SearchRepositoriesBuilder
pub fn append_query_params(&self, req: &mut Request)
Trait Implementations§
source§impl Clone for SearchRepositoriesBuilder
impl Clone for SearchRepositoriesBuilder
source§fn clone(&self) -> SearchRepositoriesBuilder
fn clone(&self) -> SearchRepositoriesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchRepositoriesBuilder
impl Debug for SearchRepositoriesBuilder
source§impl Default for SearchRepositoriesBuilder
impl Default for SearchRepositoriesBuilder
source§fn default() -> SearchRepositoriesBuilder
fn default() -> SearchRepositoriesBuilder
Auto Trait Implementations§
impl Freeze for SearchRepositoriesBuilder
impl RefUnwindSafe for SearchRepositoriesBuilder
impl Send for SearchRepositoriesBuilder
impl Sync for SearchRepositoriesBuilder
impl Unpin for SearchRepositoriesBuilder
impl UnwindSafe for SearchRepositoriesBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)