pub struct CommitsResource<'c, C: HttpClient> { /* private fields */ }Expand description
Operations on commits within a repository.
Implementations§
Source§impl<'c, C: HttpClient> CommitsResource<'c, C>
impl<'c, C: HttpClient> CommitsResource<'c, C>
Sourcepub async fn create(
&self,
req: &CreateCommitRequest,
) -> Result<CommitSummary, MesaError>
pub async fn create( &self, req: &CreateCommitRequest, ) -> Result<CommitSummary, MesaError>
Sourcepub async fn list(
&self,
params: &ListCommitsParams,
) -> Result<ListCommitsResponse, MesaError>
pub async fn list( &self, params: &ListCommitsParams, ) -> Result<ListCommitsResponse, MesaError>
Sourcepub fn list_all(&self, ref_: Option<&str>) -> PageStream<C, ListCommitsResponse>
pub fn list_all(&self, ref_: Option<&str>) -> PageStream<C, ListCommitsResponse>
Return a PageStream that iterates over all commits.
Optionally filter by ref (branch name or SHA).
Auto Trait Implementations§
impl<'c, C> Freeze for CommitsResource<'c, C>
impl<'c, C> RefUnwindSafe for CommitsResource<'c, C>where
C: RefUnwindSafe,
impl<'c, C> Send for CommitsResource<'c, C>
impl<'c, C> Sync for CommitsResource<'c, C>
impl<'c, C> Unpin for CommitsResource<'c, C>
impl<'c, C> UnwindSafe for CommitsResource<'c, C>where
C: RefUnwindSafe,
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