pub struct ReposClient<'a> { /* private fields */ }Expand description
Client for listing and creating repositories (/{org}/repos).
Implementations§
Source§impl<'a> ReposClient<'a>
impl<'a> ReposClient<'a>
Sourcepub fn list(
&self,
limit: Option<u8>,
) -> impl Stream<Item = Result<GetByOrgRepos200ResponseReposInner, Error<GetByOrgReposError>>> + 'a
pub fn list( &self, limit: Option<u8>, ) -> impl Stream<Item = Result<GetByOrgRepos200ResponseReposInner, Error<GetByOrgReposError>>> + 'a
List repositories in the organization.
Returns an async stream that automatically paginates through all results,
yielding one repository 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: PostByOrgReposRequest,
) -> Result<PostByOrgRepos201Response, Error<PostByOrgReposError>>
pub async fn create( &self, request: PostByOrgReposRequest, ) -> Result<PostByOrgRepos201Response, Error<PostByOrgReposError>>
Sourcepub fn at(&self, name: &'a str) -> RepoClient<'a>
pub fn at(&self, name: &'a str) -> RepoClient<'a>
Navigate to a specific repository.
Trait Implementations§
Source§impl<'a> Clone for ReposClient<'a>
impl<'a> Clone for ReposClient<'a>
Source§fn clone(&self) -> ReposClient<'a>
fn clone(&self) -> ReposClient<'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 ReposClient<'a>
impl<'a> !RefUnwindSafe for ReposClient<'a>
impl<'a> Send for ReposClient<'a>
impl<'a> Sync for ReposClient<'a>
impl<'a> Unpin for ReposClient<'a>
impl<'a> !UnwindSafe for ReposClient<'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