pub struct GitlabClient { /* private fields */ }Implementations§
Source§impl GitlabClient
impl GitlabClient
pub fn new(token: Option<&str>, base_url: Option<&str>) -> Result<Self>
pub async fn download_file<F>( &self, url: &str, destination: &Path, progress: &mut Option<F>, ) -> Result<()>
pub async fn get_release_by_tag( &self, project_path: &str, tag: &str, ) -> Result<GitlabReleaseDto>
pub async fn get_releases( &self, project_path: &str, per_page: Option<u32>, max_total: Option<u32>, ) -> Result<Vec<GitlabReleaseDto>>
Trait Implementations§
Source§impl Clone for GitlabClient
impl Clone for GitlabClient
Source§fn clone(&self) -> GitlabClient
fn clone(&self) -> GitlabClient
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 GitlabClient
impl !RefUnwindSafe for GitlabClient
impl Send for GitlabClient
impl Sync for GitlabClient
impl Unpin for GitlabClient
impl UnsafeUnpin for GitlabClient
impl !UnwindSafe for GitlabClient
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