pub struct GitSettingsClient { /* private fields */ }
Expand description
GitSettings API 客户端
Implementations§
Source§impl GitSettingsClient
impl GitSettingsClient
Sourcepub async fn get_repo_settings_pull_request(
&self,
repo: String,
) -> Result<Value>
pub async fn get_repo_settings_pull_request( &self, repo: String, ) -> Result<Value>
查询仓库合并请求设置。List pull request settings.
Sourcepub async fn put_repo_settings_pull_request(
&self,
repo: String,
pull_request_form: Value,
) -> Result<Value>
pub async fn put_repo_settings_pull_request( &self, repo: String, pull_request_form: Value, ) -> Result<Value>
设置仓库推送设置。Set pull request settings.
Sourcepub async fn get_repo_settings_branch_protections(
&self,
repo: String,
) -> Result<Value>
pub async fn get_repo_settings_branch_protections( &self, repo: String, ) -> Result<Value>
查询仓库保护分支规则列表。List branch protection rules.
Sourcepub async fn post_repo_settings_branch_protections(
&self,
repo: String,
branch_protection_form: Value,
) -> Result<Value>
pub async fn post_repo_settings_branch_protections( &self, repo: String, branch_protection_form: Value, ) -> Result<Value>
新增仓库保护分支规则。Create branch protection rule.
Sourcepub async fn get_repo_settings_push_limit(&self, repo: String) -> Result<Value>
pub async fn get_repo_settings_push_limit(&self, repo: String) -> Result<Value>
查询仓库推送设置。List push limit settings.
Sourcepub async fn put_repo_settings_push_limit(
&self,
repo: String,
push_limit_form: Value,
) -> Result<Value>
pub async fn put_repo_settings_push_limit( &self, repo: String, push_limit_form: Value, ) -> Result<Value>
设置仓库推送设置。Set push limit settings.
Sourcepub async fn get_repo_settings_branch_protections_id(
&self,
repo: String,
id: String,
) -> Result<Value>
pub async fn get_repo_settings_branch_protections_id( &self, repo: String, id: String, ) -> Result<Value>
查询仓库保护分支规则。Get branch protection rule.
Sourcepub async fn delete_repo_settings_branch_protections_id(
&self,
repo: String,
id: String,
) -> Result<Value>
pub async fn delete_repo_settings_branch_protections_id( &self, repo: String, id: String, ) -> Result<Value>
删除仓库保护分支规则。 Delete branch protection rule.
Sourcepub async fn patch_repo_settings_branch_protections_id(
&self,
repo: String,
id: String,
branch_protection_form: Value,
) -> Result<Value>
pub async fn patch_repo_settings_branch_protections_id( &self, repo: String, id: String, branch_protection_form: Value, ) -> Result<Value>
更新仓库保护分支规则。Update branch protection rule.
Sourcepub async fn get_repo_settings_cloud_native_build(
&self,
repo: String,
) -> Result<Value>
pub async fn get_repo_settings_cloud_native_build( &self, repo: String, ) -> Result<Value>
查询仓库云原生构建设置。List pipeline settings.
Auto Trait Implementations§
impl Freeze for GitSettingsClient
impl !RefUnwindSafe for GitSettingsClient
impl Send for GitSettingsClient
impl Sync for GitSettingsClient
impl Unpin for GitSettingsClient
impl !UnwindSafe for GitSettingsClient
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