pub struct SyncClient<'a> { /* private fields */ }Expand description
Client for sync operations (/{org}/{repo}/sync).
Implementations§
Source§impl SyncClient<'_>
impl SyncClient<'_>
Sourcepub async fn status(
&self,
) -> Result<GetByOrgByRepoSync200Response, Error<GetByOrgByRepoSyncError>>
pub async fn status( &self, ) -> Result<GetByOrgByRepoSync200Response, Error<GetByOrgByRepoSyncError>>
Sourcepub async fn trigger(
&self,
) -> Result<DeleteByOrgApiKeysById200Response, Error<PostByOrgByRepoSyncError>>
pub async fn trigger( &self, ) -> Result<DeleteByOrgApiKeysById200Response, Error<PostByOrgByRepoSyncError>>
Trigger a sync from the upstream repository (waits for completion).
§Errors
Returns an error if the API request fails.
Trait Implementations§
Source§impl<'a> Clone for SyncClient<'a>
impl<'a> Clone for SyncClient<'a>
Source§fn clone(&self) -> SyncClient<'a>
fn clone(&self) -> SyncClient<'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 SyncClient<'a>
impl<'a> !RefUnwindSafe for SyncClient<'a>
impl<'a> Send for SyncClient<'a>
impl<'a> Sync for SyncClient<'a>
impl<'a> Unpin for SyncClient<'a>
impl<'a> UnsafeUnpin for SyncClient<'a>
impl<'a> !UnwindSafe for SyncClient<'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