pub struct GithubSearchHit {
pub clone_url: Option<String>,
pub default_branch: Option<String>,
pub description: Option<String>,
pub full_name: Option<String>,
pub html_url: Option<String>,
pub language: Option<String>,
pub private: Option<bool>,
pub stars: Option<i32>,
}Fields§
§clone_url: Option<String>CloneURL is the repository’s https git remote.
default_branch: Option<String>DefaultBranch is the branch a clone checks out.
description: Option<String>Description is the blurb the repository’s owner wrote. Empty when it has none.
full_name: Option<String>FullName is the repository’s "owner/repo" on GitHub. Finding it here does NOT make it forkable: githubFork takes a repo the org’s installation was granted, and a hit from the public index usually is not one.
html_url: Option<String>HTMLURL is the repository’s page on github.com.
language: Option<String>Language is the primary language GitHub detected from the file mix ("Go", "TypeScript"). Empty when GitHub attributes none.
private: Option<bool>Private is GitHub’s visibility flag, passed through. This op reads the public index — the org’s token only charges the rate limit to the installation — so it is false for everything a search can reach.
stars: Option<i32>Stars is GitHub’s stargazers_count as the SEARCH INDEX held it when the query ran — a snapshot, not a live count off the repository.
Implementations§
Source§impl GithubSearchHit
impl GithubSearchHit
pub fn new() -> GithubSearchHit
Trait Implementations§
Source§impl Clone for GithubSearchHit
impl Clone for GithubSearchHit
Source§fn clone(&self) -> GithubSearchHit
fn clone(&self) -> GithubSearchHit
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more