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 topic(self, topic: impl Into<bool>) -> Self
pub fn topic(self, topic: impl Into<bool>) -> Self
Limit search to repositories with keyword as topic
Sourcepub fn include_desc(self, include_desc: impl Into<bool>) -> Self
pub fn include_desc(self, include_desc: impl Into<bool>) -> Self
Include search of keyword within repository description
Sourcepub fn uid(self, uid: impl Into<i64>) -> Self
pub fn uid(self, uid: impl Into<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: impl Into<i64>) -> Self
pub fn priority_owner_id(self, priority_owner_id: impl Into<i64>) -> Self
Repo owner to prioritize in the results
Sourcepub fn team_id(self, team_id: impl Into<i64>) -> Self
pub fn team_id(self, team_id: impl Into<i64>) -> Self
Search only for repos that belong to the given team id
Sourcepub fn starred_by(self, starred_by: impl Into<i64>) -> Self
pub fn starred_by(self, starred_by: impl Into<i64>) -> Self
Search only for repos that the user with the given id has starred
Sourcepub fn private(self, private: impl Into<bool>) -> Self
pub fn private(self, private: impl Into<bool>) -> Self
Include private repositories this user has access to (defaults to true)
Sourcepub fn is_private(self, is_private: impl Into<bool>) -> Self
pub fn is_private(self, is_private: impl Into<bool>) -> Self
Show only pubic, private or all repositories (defaults to all)
Sourcepub fn template(self, template: impl Into<bool>) -> Self
pub fn template(self, template: impl Into<bool>) -> Self
Include template repositories this user has access to (defaults to true)
Sourcepub fn archived(self, archived: impl Into<bool>) -> Self
pub fn archived(self, archived: impl Into<bool>) -> Self
Show only archived, non-archived or all repositories (defaults to all)
Sourcepub fn mode(self, mode: impl Into<String>) -> Self
pub fn mode(self, mode: impl Into<String>) -> Self
Type of repository to search for. Supported values are “fork”, “source”, “mirror” and “collaborative”
Sourcepub fn exclusive(self, exclusive: impl Into<bool>) -> Self
pub fn exclusive(self, exclusive: impl Into<bool>) -> Self
If uid is given, search only for repos that the user owns
Sourcepub fn sort(self, sort: impl Into<String>) -> Self
pub fn sort(self, sort: impl Into<String>) -> Self
Sort repos by attribute. Supported values are “alpha”, “created”, “updated”, “size”, and “id”. Default is “alpha”
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 more