pub struct AnalyticsClient<'a> { /* private fields */ }Expand description
Client for analytics and AI attribution (/{org}/{repo}/analytics).
Implementations§
Source§impl AnalyticsClient<'_>
impl AnalyticsClient<'_>
Sourcepub async fn get(
&self,
period: Option<&str>,
) -> Result<GetByOrgByRepoAnalytics200Response, Error<GetByOrgByRepoAnalyticsError>>
pub async fn get( &self, period: Option<&str>, ) -> Result<GetByOrgByRepoAnalytics200Response, Error<GetByOrgByRepoAnalyticsError>>
Sourcepub async fn refresh(
&self,
) -> Result<GetByOrgByRepoAnalytics200Response, Error<PostByOrgByRepoAnalyticsRefreshError>>
pub async fn refresh( &self, ) -> Result<GetByOrgByRepoAnalytics200Response, Error<PostByOrgByRepoAnalyticsRefreshError>>
Trigger a full re-aggregation of repository analytics.
§Errors
Returns an error if the API request fails.
Sourcepub async fn agentblame(
&self,
base: &str,
head: &str,
) -> Result<GetByOrgByRepoAgentblame200Response, Error<GetByOrgByRepoAgentblameError>>
pub async fn agentblame( &self, base: &str, head: &str, ) -> Result<GetByOrgByRepoAgentblame200Response, Error<GetByOrgByRepoAgentblameError>>
Trait Implementations§
Source§impl<'a> Clone for AnalyticsClient<'a>
impl<'a> Clone for AnalyticsClient<'a>
Source§fn clone(&self) -> AnalyticsClient<'a>
fn clone(&self) -> AnalyticsClient<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for AnalyticsClient<'a>
impl<'a> !RefUnwindSafe for AnalyticsClient<'a>
impl<'a> Send for AnalyticsClient<'a>
impl<'a> Sync for AnalyticsClient<'a>
impl<'a> Unpin for AnalyticsClient<'a>
impl<'a> UnsafeUnpin for AnalyticsClient<'a>
impl<'a> !UnwindSafe for AnalyticsClient<'a>
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