[−][src]Struct github_stats::Repo
Represents that stats of a Github repository.
Implementations
impl Repo
[src]
pub async fn new(user: &str, repo: &str, user_agent: &str) -> Result<Self>
[src]
Creates a new Repo
.
Example
use github_stats::Repo; let repo = Repo::new("rust-lang", "rust", "<my user agent>");
pub fn id(&self) -> u64
[src]
pub fn node_id(&self) -> &str
[src]
pub fn name(&self) -> &str
[src]
pub fn full_name(&self) -> &str
[src]
pub fn private(&self) -> bool
[src]
pub fn owner(&self) -> &User
[src]
pub fn html_url(&self) -> &str
[src]
pub fn description(&self) -> &str
[src]
pub fn fork(&self) -> bool
[src]
pub fn url(&self) -> &str
[src]
pub fn created_at(&self) -> &DateTime<Utc>
[src]
pub fn updated_at(&self) -> &DateTime<Utc>
[src]
pub fn pushed_at(&self) -> &DateTime<Utc>
[src]
pub fn git_url(&self) -> &str
[src]
pub fn ssh_url(&self) -> &str
[src]
pub fn clone_url(&self) -> &str
[src]
pub fn svn_url(&self) -> &str
[src]
pub fn homepage(&self) -> &str
[src]
pub fn size(&self) -> u64
[src]
In kilobytes.
pub fn stargazers_count(&self) -> u64
[src]
pub fn language(&self) -> &Option<String>
[src]
pub fn forks_count(&self) -> u64
[src]
pub fn archived(&self) -> bool
[src]
pub fn disabled(&self) -> bool
[src]
pub fn has_projects(&self) -> bool
[src]
pub fn has_pages(&self) -> bool
[src]
pub fn has_downloads(&self) -> bool
[src]
pub fn open_issues(&self) -> u64
[src]
Issues + PRs
pub fn default_branch(&self) -> &str
[src]
pub fn subscribers_count(&self) -> u64
[src]
Number of watchers.
pub fn has_issues(&self) -> bool
[src]
pub fn has_wiki(&self) -> bool
[src]
pub fn open_issues_count(&self) -> u64
[src]
Trait Implementations
impl Debug for Repo
[src]
impl<'de> Deserialize<'de> for Repo
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Repo
[src]
impl Send for Repo
[src]
impl Sync for Repo
[src]
impl Unpin for Repo
[src]
impl UnwindSafe for Repo
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,