pub struct GiteaClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PlatformClient for GiteaClient
impl PlatformClient for GiteaClient
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 get_repo(&self, _owner: &str, _repo: &str) -> Result<RemoteRepo>
fn get_repo(&self, _owner: &str, _repo: &str) -> Result<RemoteRepo>
Get repository information
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 GiteaClient
impl RefUnwindSafe for GiteaClient
impl Send for GiteaClient
impl Sync for GiteaClient
impl Unpin for GiteaClient
impl UnsafeUnpin for GiteaClient
impl UnwindSafe for GiteaClient
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