pub struct GitlabClient { /* private fields */ }Implementations§
Source§impl GitlabClient
impl GitlabClient
pub fn new( token: Option<&str>, base_url: Option<&str>, download_config: DownloadConfig, ) -> 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>>
pub async fn get_releases_page( &self, project_path: &str, per_page: u32, page: u32, ) -> Result<Vec<GitlabReleaseDto>>
pub async fn get_branch_head_sha( &self, project_path: &str, branch: &str, ) -> Result<String>
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 (const: unstable) · 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 !RefUnwindSafe for GitlabClient
impl !UnwindSafe for GitlabClient
impl Freeze for GitlabClient
impl Send for GitlabClient
impl Sync for GitlabClient
impl Unpin for GitlabClient
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more