pub struct GitLabClient { /* private fields */ }Expand description
GitLab API client (placeholder)
Implementations§
Trait Implementations§
Source§impl PlatformClient for GitLabClient
impl PlatformClient for GitLabClient
Source§fn create_repo(
&self,
name: &str,
description: Option<&str>,
visibility: Visibility,
namespace: Option<&str>,
) -> Result<RemoteRepo>
fn create_repo( &self, name: &str, description: Option<&str>, visibility: Visibility, namespace: Option<&str>, ) -> Result<RemoteRepo>
Create a new repository
Create a repository.
namespace: None → authenticated user’s personal account.
Some(owner) → organization (GitHub/Gitea/Forgejo/Codeberg) or
group/subgroup path (GitLab).Source§fn update_repo(
&self,
owner: &str,
repo: &str,
settings: RepoSettings,
) -> Result<RemoteRepo>
fn update_repo( &self, owner: &str, repo: &str, settings: RepoSettings, ) -> Result<RemoteRepo>
Update repository settings
Source§fn list_repos(&self) -> Result<Vec<RemoteRepo>>
fn list_repos(&self) -> Result<Vec<RemoteRepo>>
List user repositories
Source§fn set_visibility(
&self,
owner: &str,
repo: &str,
visibility: Visibility,
) -> Result<()>
fn set_visibility( &self, owner: &str, repo: &str, visibility: Visibility, ) -> Result<()>
Set repository visibility
Source§fn configure_features(
&self,
owner: &str,
repo: &str,
features: RepoFeatures,
) -> Result<()>
fn configure_features( &self, owner: &str, repo: &str, features: RepoFeatures, ) -> Result<()>
Enable/disable features
Auto 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