pub struct LfsClient<'a> { /* private fields */ }Expand description
Client for LFS operations (/{org}/{repo}/lfs).
Implementations§
Source§impl LfsClient<'_>
impl LfsClient<'_>
Sourcepub async fn upload(
&self,
request: PostByOrgByRepoLfsObjectsRequest,
) -> Result<PostByOrgByRepoLfsObjects200Response, Error<PostByOrgByRepoLfsObjectsError>>
pub async fn upload( &self, request: PostByOrgByRepoLfsObjectsRequest, ) -> Result<PostByOrgByRepoLfsObjects200Response, Error<PostByOrgByRepoLfsObjectsError>>
Request pre-signed URLs to upload large files to LFS storage.
§Errors
Returns an error if the API request fails.
Sourcepub async fn download(
&self,
request: PostByOrgByRepoLfsObjectsRequest,
) -> Result<PostByOrgByRepoLfsObjects200Response, Error<PostByOrgByRepoLfsObjectsDownloadError>>
pub async fn download( &self, request: PostByOrgByRepoLfsObjectsRequest, ) -> Result<PostByOrgByRepoLfsObjects200Response, Error<PostByOrgByRepoLfsObjectsDownloadError>>
Request pre-signed URLs to download large files from LFS storage.
§Errors
Returns an error if the API request fails.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LfsClient<'a>
impl<'a> !RefUnwindSafe for LfsClient<'a>
impl<'a> Send for LfsClient<'a>
impl<'a> Sync for LfsClient<'a>
impl<'a> Unpin for LfsClient<'a>
impl<'a> !UnwindSafe for LfsClient<'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