Struct depdive::github::GitHubAnalyzer [−][src]
pub struct GitHubAnalyzer { /* fields omitted */ }
Expand description
A GitHub client to fetch various metrics
Implementations
Get overall usage and activity metrics
pub fn get_activity_metrics(
self,
repo_fullname: &str,
default_branch: &str
) -> Result<ActivityMetrics>
pub fn get_time_since_last_commit(
&self,
repo_fullname: &str,
default_branch: &str
) -> Result<Duration>
pub fn get_total_open_issue_count_for_label(
&self,
repo_fullname: &str,
label: &str
) -> Result<u64>
pub fn get_stats_on_recent_activity(
&self,
repo_fullname: &str,
past_days: u64
) -> Result<RecentActivity>
Auto Trait Implementations
impl !RefUnwindSafe for GitHubAnalyzer
impl Send for GitHubAnalyzer
impl Sync for GitHubAnalyzer
impl Unpin for GitHubAnalyzer
impl !UnwindSafe for GitHubAnalyzer
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more