Struct roctogen::endpoints::search::SearchCodeParams [−][src]
pub struct SearchCodeParams<'req> { /* fields omitted */ }
Expand description
Query parameters for the Search code endpoint.
Implementations
impl<'req> SearchCodeParams<'req>
[src]
impl<'req> SearchCodeParams<'req>
[src]pub fn new() -> Self
[src]
pub fn q(self, q: &'req str) -> Self
[src]
pub fn q(self, q: &'req str) -> Self
[src]The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see Constructing a search query. See "Searching code" for a detailed list of qualifiers.
pub fn sort(self, sort: &'req str) -> Self
[src]
pub fn sort(self, sort: &'req str) -> Self
[src]Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: best match
Trait Implementations
impl<'req> Default for SearchCodeParams<'req>
[src]
impl<'req> Default for SearchCodeParams<'req>
[src]fn default() -> SearchCodeParams<'req>
[src]
fn default() -> SearchCodeParams<'req>
[src]Returns the “default value” for a type. Read more
impl<'enc> From<&'enc PerPage> for SearchCodeParams<'enc>
[src]
impl<'enc> From<&'enc PerPage> for SearchCodeParams<'enc>
[src]impl<'req> Serialize for SearchCodeParams<'req>
[src]
impl<'req> Serialize for SearchCodeParams<'req>
[src]