pub struct Client { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Commits for Client
impl Commits for Client
fn list_commits<'life0, 'async_trait>( &'life0 self, input: ListCommitsRequest ) -> Pin<Box<dyn Future<Output = Result<Vec<ListCommitsResponse>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§impl Git for Client
impl Git for Client
source§fn get_blob<'life0, 'async_trait>(
&'life0 self,
input: GetBlobRequest
) -> Pin<Box<dyn Future<Output = Result<GetBlobResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_blob<'life0, 'async_trait>( &'life0 self, input: GetBlobRequest ) -> Pin<Box<dyn Future<Output = Result<GetBlobResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Get the contents of a file at a given commit.
A Git blob (binary large object) is the object type used to store the contents of each file in a repository. The file’s SHA-1 hash is computed and stored in the blob object. These endpoints allow you to read and write blob objects to your Git database on GitHub. Blobs leverage these custom media types. You can read more about the use of media types in the API here.use crate::{Client, SortDirection, User};
source§impl Pulls for Client
impl Pulls for Client
fn list_pull_requests<'life0, 'async_trait>( &'life0 self, input: ListPullRequestsRequest ) -> Pin<Box<dyn Future<Output = Result<ListPullRequestsResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn list_reviews_for_pull_request<'life0, 'async_trait>( &'life0 self, input: ListReviewsForPullRequestRequest ) -> Pin<Box<dyn Future<Output = Result<ListReviewsForPullRequestResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§impl Repositories for Client
impl Repositories for Client
source§fn get_commit<'life0, 'async_trait>(
&'life0 self,
input: GetCommitRequest
) -> Pin<Box<dyn Future<Output = Result<GetCommitResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_commit<'life0, 'async_trait>( &'life0 self, input: GetCommitRequest ) -> Pin<Box<dyn Future<Output = Result<GetCommitResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Get a commit from a repository.
source§fn get_repository_content<'life0, 'async_trait>(
&'life0 self,
input: GetRepositoryContentRequest
) -> Pin<Box<dyn Future<Output = Result<Option<GetRepositoryContentResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_repository_content<'life0, 'async_trait>( &'life0 self, input: GetRepositoryContentRequest ) -> Pin<Box<dyn Future<Output = Result<Option<GetRepositoryContentResponse>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Get the content of a path at a given commit.
TODO: Support getting directories in addition to files and symlinks.