pub struct Repo { /* private fields */ }
Expand description
Represents that stats of a Github repository.
Implementations§
Source§impl Repo
impl Repo
Sourcepub async fn new(user: &str, repo: &str, user_agent: &str) -> Result<Self>
pub async fn new(user: &str, repo: &str, user_agent: &str) -> Result<Self>
Creates a new Repo
.
§Example
use github_stats::Repo;
let repo = Repo::new("rust-lang", "rust", "<my user agent>");
pub fn id(&self) -> u64
pub fn node_id(&self) -> &str
pub fn name(&self) -> &str
pub fn full_name(&self) -> &str
pub fn private(&self) -> bool
pub fn owner(&self) -> &User
pub fn html_url(&self) -> &str
pub fn description(&self) -> &str
pub fn fork(&self) -> bool
pub fn url(&self) -> &str
pub fn created_at(&self) -> &DateTime<Utc>
pub fn updated_at(&self) -> &DateTime<Utc>
pub fn pushed_at(&self) -> &DateTime<Utc>
pub fn git_url(&self) -> &str
pub fn ssh_url(&self) -> &str
pub fn clone_url(&self) -> &str
pub fn svn_url(&self) -> &str
pub fn homepage(&self) -> &str
pub fn stargazers_count(&self) -> u64
pub fn language(&self) -> &Option<String>
pub fn forks_count(&self) -> u64
pub fn archived(&self) -> bool
pub fn disabled(&self) -> bool
pub fn has_projects(&self) -> bool
pub fn has_pages(&self) -> bool
pub fn has_downloads(&self) -> bool
Sourcepub fn open_issues(&self) -> u64
pub fn open_issues(&self) -> u64
Issues + PRs
pub fn default_branch(&self) -> &str
Sourcepub fn subscribers_count(&self) -> u64
pub fn subscribers_count(&self) -> u64
Number of watchers.
pub fn has_issues(&self) -> bool
pub fn has_wiki(&self) -> bool
pub fn open_issues_count(&self) -> u64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Repo
impl<'de> Deserialize<'de> for Repo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
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
Mutably borrows from an owned value. Read more