pub struct RepoClient<'a> { /* private fields */ }Expand description
Client scoped to a specific repository (/{org}/{repo}).
Implementations§
Source§impl RepoClient<'_>
impl RepoClient<'_>
Sourcepub async fn get(
&self,
) -> Result<PostByOrgRepos201Response, Error<GetByOrgByRepoError>>
pub async fn get( &self, ) -> Result<PostByOrgRepos201Response, Error<GetByOrgByRepoError>>
Sourcepub async fn delete(
&self,
) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgByRepoError>>
pub async fn delete( &self, ) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgByRepoError>>
Permanently delete this repository and all its data.
§Errors
Returns an error if the API request fails.
Sourcepub async fn update(
&self,
request: PatchByOrgByRepoRequest,
) -> Result<PostByOrgRepos201Response, Error<PatchByOrgByRepoError>>
pub async fn update( &self, request: PatchByOrgByRepoRequest, ) -> Result<PostByOrgRepos201Response, Error<PatchByOrgByRepoError>>
Update repository name or upstream configuration.
§Errors
Returns an error if the API request fails.
Sourcepub fn branches(&self) -> BranchesClient<'_>
pub fn branches(&self) -> BranchesClient<'_>
Access branch operations.
Sourcepub fn commits(&self) -> CommitsClient<'_>
pub fn commits(&self) -> CommitsClient<'_>
Access commit operations.
Sourcepub fn content(&self) -> ContentClient<'_>
pub fn content(&self) -> ContentClient<'_>
Access content operations.
Sourcepub fn diff(&self) -> DiffClient<'_>
pub fn diff(&self) -> DiffClient<'_>
Access diff operations.
Sourcepub fn sync(&self) -> SyncClient<'_>
pub fn sync(&self) -> SyncClient<'_>
Access sync operations.
Sourcepub fn webhooks(&self) -> WebhooksClient<'_>
pub fn webhooks(&self) -> WebhooksClient<'_>
Access webhook operations.
Sourcepub fn analytics(&self) -> AnalyticsClient<'_>
pub fn analytics(&self) -> AnalyticsClient<'_>
Access analytics and AI attribution.
Trait Implementations§
Source§impl<'a> Clone for RepoClient<'a>
impl<'a> Clone for RepoClient<'a>
Source§fn clone(&self) -> RepoClient<'a>
fn clone(&self) -> RepoClient<'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 RepoClient<'a>
impl<'a> !RefUnwindSafe for RepoClient<'a>
impl<'a> Send for RepoClient<'a>
impl<'a> Sync for RepoClient<'a>
impl<'a> Unpin for RepoClient<'a>
impl<'a> UnsafeUnpin for RepoClient<'a>
impl<'a> !UnwindSafe for RepoClient<'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