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 webhooks(&self) -> WebhooksClient<'_>
pub fn webhooks(&self) -> WebhooksClient<'_>
Access webhook operations.
Sourcepub async fn change(&self) -> Result<ChangeClient, Error<GetByOrgByRepoError>>
pub async fn change(&self) -> Result<ChangeClient, Error<GetByOrgByRepoError>>
Access change-based file operations (create, modify, delete, move files).
Fetches the repository UUID via the REST API, which is required by the gRPC data plane.
§Errors
Returns an error if the repository metadata cannot be fetched.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request