pub struct SourcehutClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PlatformClient for SourcehutClient
impl PlatformClient for SourcehutClient
Source§fn create_repo(
&self,
_n: &str,
_d: Option<&str>,
_v: Visibility,
_ns: Option<&str>,
) -> Result<RemoteRepo>
fn create_repo( &self, _n: &str, _d: Option<&str>, _v: Visibility, _ns: 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,
_o: &str,
_r: &str,
_s: RepoSettings,
) -> Result<RemoteRepo>
fn update_repo( &self, _o: &str, _r: &str, _s: 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, _o: &str, _r: &str, _f: RepoFeatures) -> Result<()>
fn configure_features(&self, _o: &str, _r: &str, _f: RepoFeatures) -> Result<()>
Enable/disable features
Auto Trait Implementations§
impl Freeze for SourcehutClient
impl RefUnwindSafe for SourcehutClient
impl Send for SourcehutClient
impl Sync for SourcehutClient
impl Unpin for SourcehutClient
impl UnsafeUnpin for SourcehutClient
impl UnwindSafe for SourcehutClient
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