pub struct GitlabAdapter { /* private fields */ }Implementations§
Source§impl GitlabAdapter
impl GitlabAdapter
pub fn new(client: GitlabClient) -> Self
pub async fn download_asset<F>( &self, asset: &Asset, destination_path: &Path, dl_callback: &mut Option<F>, ) -> Result<()>
pub async fn get_release_by_tag( &self, project_path: &str, tag: &str, ) -> Result<Release>
pub async fn get_latest_release(&self, project_path: &str) -> Result<Release>
pub async fn get_releases( &self, project_path: &str, per_page: Option<u32>, max_total: Option<u32>, ) -> Result<Vec<Release>>
Trait Implementations§
Source§impl Clone for GitlabAdapter
impl Clone for GitlabAdapter
Source§fn clone(&self) -> GitlabAdapter
fn clone(&self) -> GitlabAdapter
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 Freeze for GitlabAdapter
impl !RefUnwindSafe for GitlabAdapter
impl Send for GitlabAdapter
impl Sync for GitlabAdapter
impl Unpin for GitlabAdapter
impl UnsafeUnpin for GitlabAdapter
impl !UnwindSafe for GitlabAdapter
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