pub struct BranchesClient<'a> { /* private fields */ }Expand description
Client for branch operations (/{org}/{repo}/branches).
Implementations§
Source§impl<'a> BranchesClient<'a>
impl<'a> BranchesClient<'a>
Sourcepub fn list(
&self,
limit: Option<u8>,
) -> impl Stream<Item = Result<GetByOrgByRepoBranches200ResponseBranchesInner, Error<GetByOrgByRepoBranchesError>>> + 'a
pub fn list( &self, limit: Option<u8>, ) -> impl Stream<Item = Result<GetByOrgByRepoBranches200ResponseBranchesInner, Error<GetByOrgByRepoBranchesError>>> + 'a
List all branches in the repository.
Returns an async stream that automatically paginates through all results,
yielding one branch at a time. Pass limit to control the page size of
each underlying API request, or None for the server default.
Sourcepub async fn create(
&self,
request: PostByOrgByRepoBranchesRequest,
) -> Result<PostByOrgByRepoBranches201Response, Error<PostByOrgByRepoBranchesError>>
pub async fn create( &self, request: PostByOrgByRepoBranchesRequest, ) -> Result<PostByOrgByRepoBranches201Response, Error<PostByOrgByRepoBranchesError>>
Sourcepub async fn delete(
&self,
branch: &str,
) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgByRepoBranchesByBranchError>>
pub async fn delete( &self, branch: &str, ) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgByRepoBranchesByBranchError>>
Trait Implementations§
Source§impl<'a> Clone for BranchesClient<'a>
impl<'a> Clone for BranchesClient<'a>
Source§fn clone(&self) -> BranchesClient<'a>
fn clone(&self) -> BranchesClient<'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 BranchesClient<'a>
impl<'a> !RefUnwindSafe for BranchesClient<'a>
impl<'a> Send for BranchesClient<'a>
impl<'a> Sync for BranchesClient<'a>
impl<'a> Unpin for BranchesClient<'a>
impl<'a> UnsafeUnpin for BranchesClient<'a>
impl<'a> !UnwindSafe for BranchesClient<'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