pub struct BitbucketClient { /* private fields */ }Expand description
Bitbucket API client
Implementations§
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_branch_restrictions(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<BranchRestriction>>
pub async fn list_branch_restrictions( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<BranchRestriction>>
List branch restriction rules on a repository
Sourcepub async fn create_branch_restriction(
&self,
workspace: &str,
repo_slug: &str,
kind: &str,
pattern: &str,
value: Option<u64>,
) -> Result<BranchRestriction>
pub async fn create_branch_restriction( &self, workspace: &str, repo_slug: &str, kind: &str, pattern: &str, value: Option<u64>, ) -> Result<BranchRestriction>
Create a branch restriction rule.
value is the numeric parameter required by some kinds (e.g. the
approval count for require_approvals_to_merge); it is omitted from
the request body when None.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn get_branching_model(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<BranchingModel>
pub async fn get_branching_model( &self, workspace: &str, repo_slug: &str, ) -> Result<BranchingModel>
Get a repository’s effective branching model
Sourcepub async fn update_branching_model_settings(
&self,
workspace: &str,
repo_slug: &str,
request: &UpdateBranchingModelRequest,
) -> Result<BranchingModel>
pub async fn update_branching_model_settings( &self, workspace: &str, repo_slug: &str, request: &UpdateBranchingModelRequest, ) -> Result<BranchingModel>
Update a repository’s branching model settings
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub fn new(credential: Credential) -> Result<Self>
pub fn new(credential: Credential) -> Result<Self>
Create a new authenticated client
Sourcepub async fn from_stored() -> Result<Self>
pub async fn from_stored() -> Result<Self>
Create a client from stored credentials, automatically refreshing if needed
Sourcepub async fn get<T: DeserializeOwned>(&self, path: &str) -> Result<T>
pub async fn get<T: DeserializeOwned>(&self, path: &str) -> Result<T>
Make a GET request
Sourcepub async fn get_with_query<T: DeserializeOwned>(
&self,
path: &str,
query: &[(&str, &str)],
) -> Result<T>
pub async fn get_with_query<T: DeserializeOwned>( &self, path: &str, query: &[(&str, &str)], ) -> Result<T>
Make a GET request with query parameters
Sourcepub async fn post<T: DeserializeOwned, B: Serialize>(
&self,
path: &str,
body: &B,
) -> Result<T>
pub async fn post<T: DeserializeOwned, B: Serialize>( &self, path: &str, body: &B, ) -> Result<T>
Make a POST request with JSON body
Sourcepub async fn post_no_response<B: Serialize>(
&self,
path: &str,
body: &B,
) -> Result<()>
pub async fn post_no_response<B: Serialize>( &self, path: &str, body: &B, ) -> Result<()>
Make a POST request without expecting a response body
Sourcepub async fn post_multipart(&self, path: &str, form: Form) -> Result<()>
pub async fn post_multipart(&self, path: &str, form: Form) -> Result<()>
Make a multipart/form-data POST request, not expecting a JSON response body.
Used for endpoints like repository downloads, which accept file uploads and
respond with 201 Created and an empty body.
Sourcepub async fn put<T: DeserializeOwned, B: Serialize>(
&self,
path: &str,
body: &B,
) -> Result<T>
pub async fn put<T: DeserializeOwned, B: Serialize>( &self, path: &str, body: &B, ) -> Result<T>
Make a PUT request with JSON body
Sourcepub async fn get_all_pages<T: DeserializeOwned>(
&self,
path: &str,
) -> Result<Vec<T>>
pub async fn get_all_pages<T: DeserializeOwned>( &self, path: &str, ) -> Result<Vec<T>>
Fetch all pages of a paginated endpoint
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_commits(
&self,
workspace: &str,
repo_slug: &str,
revision: Option<&str>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<CommitSummary>>
pub async fn list_commits( &self, workspace: &str, repo_slug: &str, revision: Option<&str>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<CommitSummary>>
List commits in a repository, newest first.
With revision set, lists the history reachable from that branch,
tag, or commit hash; otherwise lists from the default branch.
Sourcepub async fn get_commit(
&self,
workspace: &str,
repo_slug: &str,
hash: &str,
) -> Result<CommitSummary>
pub async fn get_commit( &self, workspace: &str, repo_slug: &str, hash: &str, ) -> Result<CommitSummary>
Get a single commit by hash.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_default_reviewers(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<User>>
pub async fn list_default_reviewers( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<User>>
List a repository’s default reviewers
Sourcepub async fn add_default_reviewer(
&self,
workspace: &str,
repo_slug: &str,
username: &str,
) -> Result<User>
pub async fn add_default_reviewer( &self, workspace: &str, repo_slug: &str, username: &str, ) -> Result<User>
Add a user to a repository’s default reviewers.
username may be a username, an account ID, or a brace-wrapped UUID.
The endpoint is a bodyless PUT; an empty JSON object is sent because
the client’s PUT helper always attaches a JSON body.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_deploy_keys(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Paginated<DeployKey>>
pub async fn list_deploy_keys( &self, workspace: &str, repo_slug: &str, ) -> Result<Paginated<DeployKey>>
List deploy keys for a repository
Sourcepub async fn add_deploy_key(
&self,
workspace: &str,
repo_slug: &str,
request: &AddDeployKeyRequest,
) -> Result<DeployKey>
pub async fn add_deploy_key( &self, workspace: &str, repo_slug: &str, request: &AddDeployKeyRequest, ) -> Result<DeployKey>
Add a deploy key to a repository
Sourcepub async fn delete_deploy_key(
&self,
workspace: &str,
repo_slug: &str,
key_id: u64,
) -> Result<()>
pub async fn delete_deploy_key( &self, workspace: &str, repo_slug: &str, key_id: u64, ) -> Result<()>
Delete a deploy key from a repository
Sourcepub async fn list_environments(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Paginated<Environment>>
pub async fn list_environments( &self, workspace: &str, repo_slug: &str, ) -> Result<Paginated<Environment>>
List deployment environments for a repository
Sourcepub async fn create_environment(
&self,
workspace: &str,
repo_slug: &str,
request: &CreateEnvironmentRequest,
) -> Result<Environment>
pub async fn create_environment( &self, workspace: &str, repo_slug: &str, request: &CreateEnvironmentRequest, ) -> Result<Environment>
Create a deployment environment
Sourcepub async fn delete_environment(
&self,
workspace: &str,
repo_slug: &str,
environment_uuid: &str,
) -> Result<()>
pub async fn delete_environment( &self, workspace: &str, repo_slug: &str, environment_uuid: &str, ) -> Result<()>
Delete a deployment environment
Sourcepub async fn list_deployments(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<Deployment>>
pub async fn list_deployments( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<Deployment>>
List deployments for a repository
Sourcepub async fn get_deployment(
&self,
workspace: &str,
repo_slug: &str,
deployment_uuid: &str,
) -> Result<Deployment>
pub async fn get_deployment( &self, workspace: &str, repo_slug: &str, deployment_uuid: &str, ) -> Result<Deployment>
Get a specific deployment
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn upload_downloads(
&self,
workspace: &str,
repo_slug: &str,
files: &[(String, PathBuf)],
) -> Result<()>
pub async fn upload_downloads( &self, workspace: &str, repo_slug: &str, files: &[(String, PathBuf)], ) -> Result<()>
Upload one or more files to a repository’s downloads area.
Uploading a file whose name matches an existing artifact replaces it.
Sourcepub async fn list_downloads(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<Download>>
pub async fn list_downloads( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<Download>>
List all artifacts in a repository’s downloads area, following
pagination next links until every page has been fetched.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_issues(
&self,
workspace: &str,
repo_slug: &str,
state: Option<IssueState>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<Issue>>
pub async fn list_issues( &self, workspace: &str, repo_slug: &str, state: Option<IssueState>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<Issue>>
List issues for a repository
Sourcepub async fn get_issue(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
) -> Result<Issue>
pub async fn get_issue( &self, workspace: &str, repo_slug: &str, issue_id: u64, ) -> Result<Issue>
Get a specific issue
Sourcepub async fn create_issue(
&self,
workspace: &str,
repo_slug: &str,
request: &CreateIssueRequest,
) -> Result<Issue>
pub async fn create_issue( &self, workspace: &str, repo_slug: &str, request: &CreateIssueRequest, ) -> Result<Issue>
Create a new issue
Sourcepub async fn update_issue(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
title: Option<&str>,
content: Option<&str>,
state: Option<IssueState>,
) -> Result<Issue>
pub async fn update_issue( &self, workspace: &str, repo_slug: &str, issue_id: u64, title: Option<&str>, content: Option<&str>, state: Option<IssueState>, ) -> Result<Issue>
Update an issue’s title, description and/or state.
Convenience wrapper over Self::update_issue_full kept for the
existing close/reopen callers.
Sourcepub async fn update_issue_full(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
update: &IssueUpdate<'_>,
) -> Result<Issue>
pub async fn update_issue_full( &self, workspace: &str, repo_slug: &str, issue_id: u64, update: &IssueUpdate<'_>, ) -> Result<Issue>
Update any combination of an issue’s editable fields; unset fields are omitted from the request body and left unchanged server-side.
Sourcepub async fn delete_issue(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
) -> Result<()>
pub async fn delete_issue( &self, workspace: &str, repo_slug: &str, issue_id: u64, ) -> Result<()>
Delete an issue
Sourcepub async fn list_issue_comments(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
pagelen: Option<u32>,
) -> Result<Paginated<IssueComment>>
pub async fn list_issue_comments( &self, workspace: &str, repo_slug: &str, issue_id: u64, pagelen: Option<u32>, ) -> Result<Paginated<IssueComment>>
List comments on an issue
Sourcepub async fn add_issue_comment(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
content: &str,
) -> Result<IssueComment>
pub async fn add_issue_comment( &self, workspace: &str, repo_slug: &str, issue_id: u64, content: &str, ) -> Result<IssueComment>
Add a comment to an issue
Sourcepub async fn update_issue_comment(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
comment_id: u64,
content: &str,
) -> Result<IssueComment>
pub async fn update_issue_comment( &self, workspace: &str, repo_slug: &str, issue_id: u64, comment_id: u64, content: &str, ) -> Result<IssueComment>
Update the body of an existing comment on an issue.
Sourcepub async fn delete_issue_comment(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
comment_id: u64,
) -> Result<()>
pub async fn delete_issue_comment( &self, workspace: &str, repo_slug: &str, issue_id: u64, comment_id: u64, ) -> Result<()>
Delete a comment from an issue.
Sourcepub async fn list_issue_changes(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
pagelen: Option<u32>,
) -> Result<Paginated<IssueChange>>
pub async fn list_issue_changes( &self, workspace: &str, repo_slug: &str, issue_id: u64, pagelen: Option<u32>, ) -> Result<Paginated<IssueChange>>
List entries from an issue’s change log (state transitions, reassignments, …).
Sourcepub async fn list_issue_components(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<IssueMetaItem>>
pub async fn list_issue_components( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<IssueMetaItem>>
List the components defined in a repository’s issue tracker, following pagination until every page has been fetched.
Sourcepub async fn list_issue_milestones(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<IssueMetaItem>>
pub async fn list_issue_milestones( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<IssueMetaItem>>
List the milestones defined in a repository’s issue tracker, following pagination until every page has been fetched.
Sourcepub async fn list_issue_versions(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<IssueMetaItem>>
pub async fn list_issue_versions( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<IssueMetaItem>>
List the versions defined in a repository’s issue tracker, following pagination until every page has been fetched.
Sourcepub async fn list_issue_attachments(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
) -> Result<Vec<IssueAttachment>>
pub async fn list_issue_attachments( &self, workspace: &str, repo_slug: &str, issue_id: u64, ) -> Result<Vec<IssueAttachment>>
List the files attached to an issue, following pagination until every page has been fetched.
Sourcepub async fn upload_issue_attachments(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
files: &[(String, PathBuf)],
) -> Result<()>
pub async fn upload_issue_attachments( &self, workspace: &str, repo_slug: &str, issue_id: u64, files: &[(String, PathBuf)], ) -> Result<()>
Attach one or more files to an issue via a multipart upload.
Follows the repository downloads upload convention: every file goes under the “files” form field, keyed server-side by filename.
Sourcepub async fn delete_issue_attachment(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
attachment_path: &str,
) -> Result<()>
pub async fn delete_issue_attachment( &self, workspace: &str, repo_slug: &str, issue_id: u64, attachment_path: &str, ) -> Result<()>
Delete an attachment from an issue by its path (usually the filename as returned by the attachments list).
Sourcepub async fn vote_issue(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
) -> Result<()>
pub async fn vote_issue( &self, workspace: &str, repo_slug: &str, issue_id: u64, ) -> Result<()>
Vote for an issue
Sourcepub async fn unvote_issue(
&self,
workspace: &str,
repo_slug: &str,
issue_id: u64,
) -> Result<()>
pub async fn unvote_issue( &self, workspace: &str, repo_slug: &str, issue_id: u64, ) -> Result<()>
Remove vote from an issue
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_user_permissions(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<UserPermission>>
pub async fn list_user_permissions( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<UserPermission>>
List users with explicit permissions on a repository
Sourcepub async fn list_group_permissions(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<GroupPermission>>
pub async fn list_group_permissions( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<GroupPermission>>
List groups with explicit permissions on a repository
Sourcepub async fn grant_user_permission(
&self,
workspace: &str,
repo_slug: &str,
selected_user: &str,
permission: &str,
) -> Result<UserPermission>
pub async fn grant_user_permission( &self, workspace: &str, repo_slug: &str, selected_user: &str, permission: &str, ) -> Result<UserPermission>
Grant or update a user’s explicit permission on a repository.
selected_user may be an account ID or a brace-wrapped UUID;
permission is read, write, or admin.
Sourcepub async fn revoke_user_permission(
&self,
workspace: &str,
repo_slug: &str,
selected_user: &str,
) -> Result<()>
pub async fn revoke_user_permission( &self, workspace: &str, repo_slug: &str, selected_user: &str, ) -> Result<()>
Revoke a user’s explicit permission on a repository
Sourcepub async fn grant_group_permission(
&self,
workspace: &str,
repo_slug: &str,
group_slug: &str,
permission: &str,
) -> Result<GroupPermission>
pub async fn grant_group_permission( &self, workspace: &str, repo_slug: &str, group_slug: &str, permission: &str, ) -> Result<GroupPermission>
Grant or update a group’s explicit permission on a repository.
group_slug is the workspace group’s slug; permission is read,
write, or admin.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_pipelines(
&self,
workspace: &str,
repo_slug: &str,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<Pipeline>>
pub async fn list_pipelines( &self, workspace: &str, repo_slug: &str, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<Pipeline>>
List pipelines for a repository, sorted by most recent first.
Thin wrapper over Self::list_pipelines_filtered kept for the TUI
and the build-number/commit lookups, which need no server-side filters.
Sourcepub async fn get_pipeline(
&self,
workspace: &str,
repo_slug: &str,
pipeline_uuid: &str,
) -> Result<Pipeline>
pub async fn get_pipeline( &self, workspace: &str, repo_slug: &str, pipeline_uuid: &str, ) -> Result<Pipeline>
Get a specific pipeline
Sourcepub async fn trigger_pipeline(
&self,
workspace: &str,
repo_slug: &str,
request: &TriggerPipelineRequest,
) -> Result<Pipeline>
pub async fn trigger_pipeline( &self, workspace: &str, repo_slug: &str, request: &TriggerPipelineRequest, ) -> Result<Pipeline>
Trigger a new pipeline
Sourcepub async fn stop_pipeline(
&self,
workspace: &str,
repo_slug: &str,
pipeline_uuid: &str,
) -> Result<()>
pub async fn stop_pipeline( &self, workspace: &str, repo_slug: &str, pipeline_uuid: &str, ) -> Result<()>
Stop a running pipeline
Sourcepub async fn list_pipeline_steps(
&self,
workspace: &str,
repo_slug: &str,
pipeline_uuid: &str,
) -> Result<Paginated<PipelineStep>>
pub async fn list_pipeline_steps( &self, workspace: &str, repo_slug: &str, pipeline_uuid: &str, ) -> Result<Paginated<PipelineStep>>
List steps for a pipeline
Sourcepub async fn get_pipeline_step(
&self,
workspace: &str,
repo_slug: &str,
pipeline_uuid: &str,
step_uuid: &str,
) -> Result<PipelineStep>
pub async fn get_pipeline_step( &self, workspace: &str, repo_slug: &str, pipeline_uuid: &str, step_uuid: &str, ) -> Result<PipelineStep>
Get a specific pipeline step
Sourcepub async fn get_step_log(
&self,
workspace: &str,
repo_slug: &str,
pipeline_uuid: &str,
step_uuid: &str,
) -> Result<String>
pub async fn get_step_log( &self, workspace: &str, repo_slug: &str, pipeline_uuid: &str, step_uuid: &str, ) -> Result<String>
Get pipeline step log
Sourcepub async fn list_pipelines_for_commit(
&self,
workspace: &str,
repo_slug: &str,
commit_hash: &str,
scan_limit: u32,
) -> Result<Vec<Pipeline>>
pub async fn list_pipelines_for_commit( &self, workspace: &str, repo_slug: &str, commit_hash: &str, scan_limit: u32, ) -> Result<Vec<Pipeline>>
List pipelines whose target commit matches commit_hash, newest first.
Bitbucket’s pipelines endpoint does not expose a server-side filter on
target.commit.hash (both the ?target.commit.hash= query param and
the BBQL q= filter are silently ignored as of the 2.0 API), so this
fetches the most recent pipelines and filters client-side. scan_limit
bounds how many of the repo’s recent pipelines are scanned and is
capped at Bitbucket’s pagelen ceiling of 100; on repos that churn more
than 100 pipelines between the commit landing and this call, matches
older than that window will be missed.
Sourcepub async fn get_pipeline_by_build_number(
&self,
workspace: &str,
repo_slug: &str,
build_number: u64,
) -> Result<Pipeline>
pub async fn get_pipeline_by_build_number( &self, workspace: &str, repo_slug: &str, build_number: u64, ) -> Result<Pipeline>
Get pipeline by build number
Sourcepub async fn list_pipeline_variables(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<PipelineVariable>>
pub async fn list_pipeline_variables( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<PipelineVariable>>
List all pipeline variables configured on a repository.
Sourcepub async fn create_pipeline_variable(
&self,
workspace: &str,
repo_slug: &str,
variable: &PipelineVariableInput,
) -> Result<PipelineVariable>
pub async fn create_pipeline_variable( &self, workspace: &str, repo_slug: &str, variable: &PipelineVariableInput, ) -> Result<PipelineVariable>
Create a new pipeline variable on a repository.
Sourcepub async fn update_pipeline_variable(
&self,
workspace: &str,
repo_slug: &str,
variable_uuid: &str,
variable: &PipelineVariableInput,
) -> Result<PipelineVariable>
pub async fn update_pipeline_variable( &self, workspace: &str, repo_slug: &str, variable_uuid: &str, variable: &PipelineVariableInput, ) -> Result<PipelineVariable>
Update an existing pipeline variable on a repository.
Sourcepub async fn delete_pipeline_variable(
&self,
workspace: &str,
repo_slug: &str,
variable_uuid: &str,
) -> Result<()>
pub async fn delete_pipeline_variable( &self, workspace: &str, repo_slug: &str, variable_uuid: &str, ) -> Result<()>
Delete a pipeline variable from a repository.
Sourcepub async fn list_workspace_pipeline_variables(
&self,
workspace: &str,
) -> Result<Vec<PipelineVariable>>
pub async fn list_workspace_pipeline_variables( &self, workspace: &str, ) -> Result<Vec<PipelineVariable>>
List all workspace-level pipeline variables.
Note the workspace endpoint uses pipelines-config (hyphen), unlike
the repository endpoint’s pipelines_config.
Sourcepub async fn create_workspace_pipeline_variable(
&self,
workspace: &str,
variable: &PipelineVariableInput,
) -> Result<PipelineVariable>
pub async fn create_workspace_pipeline_variable( &self, workspace: &str, variable: &PipelineVariableInput, ) -> Result<PipelineVariable>
Create a new workspace-level pipeline variable.
Sourcepub async fn update_workspace_pipeline_variable(
&self,
workspace: &str,
variable_uuid: &str,
variable: &PipelineVariableInput,
) -> Result<PipelineVariable>
pub async fn update_workspace_pipeline_variable( &self, workspace: &str, variable_uuid: &str, variable: &PipelineVariableInput, ) -> Result<PipelineVariable>
Update an existing workspace-level pipeline variable.
Sourcepub async fn delete_workspace_pipeline_variable(
&self,
workspace: &str,
variable_uuid: &str,
) -> Result<()>
pub async fn delete_workspace_pipeline_variable( &self, workspace: &str, variable_uuid: &str, ) -> Result<()>
Delete a workspace-level pipeline variable.
Sourcepub async fn list_pipeline_schedules(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<PipelineSchedule>>
pub async fn list_pipeline_schedules( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<PipelineSchedule>>
List all pipeline schedules configured on a repository.
Sourcepub async fn create_pipeline_schedule(
&self,
workspace: &str,
repo_slug: &str,
branch: &str,
cron_pattern: &str,
) -> Result<PipelineSchedule>
pub async fn create_pipeline_schedule( &self, workspace: &str, repo_slug: &str, branch: &str, cron_pattern: &str, ) -> Result<PipelineSchedule>
Create a pipeline schedule running branch on cron_pattern.
Sourcepub async fn delete_pipeline_schedule(
&self,
workspace: &str,
repo_slug: &str,
schedule_uuid: &str,
) -> Result<()>
pub async fn delete_pipeline_schedule( &self, workspace: &str, repo_slug: &str, schedule_uuid: &str, ) -> Result<()>
Delete a pipeline schedule from a repository.
Sourcepub async fn list_pipeline_caches(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Vec<PipelineCache>>
pub async fn list_pipeline_caches( &self, workspace: &str, repo_slug: &str, ) -> Result<Vec<PipelineCache>>
List dependency caches stored for a repository’s pipelines.
Note the caches endpoint uses pipelines-config (hyphen), unlike the
variables/schedules endpoints’ pipelines_config.
Sourcepub async fn delete_pipeline_cache(
&self,
workspace: &str,
repo_slug: &str,
cache_uuid: &str,
) -> Result<()>
pub async fn delete_pipeline_cache( &self, workspace: &str, repo_slug: &str, cache_uuid: &str, ) -> Result<()>
Delete a pipeline dependency cache by UUID.
Sourcepub async fn get_pipelines_config(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<PipelinesConfig>
pub async fn get_pipelines_config( &self, workspace: &str, repo_slug: &str, ) -> Result<PipelinesConfig>
Get the repository’s pipelines configuration (enabled state).
Sourcepub async fn update_pipelines_config_enabled(
&self,
workspace: &str,
repo_slug: &str,
enabled: bool,
) -> Result<PipelinesConfig>
pub async fn update_pipelines_config_enabled( &self, workspace: &str, repo_slug: &str, enabled: bool, ) -> Result<PipelinesConfig>
Enable or disable pipelines on a repository.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_projects(
&self,
workspace: &str,
query: Option<&str>,
sort: Option<&str>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<ProjectDetail>>
pub async fn list_projects( &self, workspace: &str, query: Option<&str>, sort: Option<&str>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<ProjectDetail>>
List a page of projects in a workspace.
query is a Bitbucket query (BBQL) expression passed as the q
parameter, and sort names a field to sort by (prefix with - for
descending).
Sourcepub async fn get_project(
&self,
workspace: &str,
key: &str,
) -> Result<ProjectDetail>
pub async fn get_project( &self, workspace: &str, key: &str, ) -> Result<ProjectDetail>
Get a single project by its key
Sourcepub async fn create_project(
&self,
workspace: &str,
request: &CreateProjectRequest,
) -> Result<ProjectDetail>
pub async fn create_project( &self, workspace: &str, request: &CreateProjectRequest, ) -> Result<ProjectDetail>
Create a new project in a workspace
Sourcepub async fn update_project(
&self,
workspace: &str,
key: &str,
request: &UpdateProjectRequest,
) -> Result<ProjectDetail>
pub async fn update_project( &self, workspace: &str, key: &str, request: &UpdateProjectRequest, ) -> Result<ProjectDetail>
Update settings on an existing project
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_pull_requests(
&self,
workspace: &str,
repo_slug: &str,
state: Option<PullRequestState>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<PullRequest>>
pub async fn list_pull_requests( &self, workspace: &str, repo_slug: &str, state: Option<PullRequestState>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<PullRequest>>
List pull requests for a repository, filtered by at most one state.
Thin wrapper over Self::list_pull_requests_filtered kept for
callers (e.g. the TUI) that only need the simple form.
Sourcepub async fn get_pull_request(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<PullRequest>
pub async fn get_pull_request( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<PullRequest>
Get a specific pull request
Sourcepub async fn create_pull_request(
&self,
workspace: &str,
repo_slug: &str,
request: &CreatePullRequestRequest,
) -> Result<PullRequest>
pub async fn create_pull_request( &self, workspace: &str, repo_slug: &str, request: &CreatePullRequestRequest, ) -> Result<PullRequest>
Create a new pull request
Sourcepub async fn update_pull_request(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
request: &UpdatePullRequestRequest,
) -> Result<PullRequest>
pub async fn update_pull_request( &self, workspace: &str, repo_slug: &str, pr_id: u64, request: &UpdatePullRequestRequest, ) -> Result<PullRequest>
Update a pull request; only the fields set on request are changed.
Sourcepub async fn merge_pull_request(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
request: Option<&MergePullRequestRequest>,
) -> Result<PullRequest>
pub async fn merge_pull_request( &self, workspace: &str, repo_slug: &str, pr_id: u64, request: Option<&MergePullRequestRequest>, ) -> Result<PullRequest>
Merge a pull request
Sourcepub async fn approve_pull_request(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<()>
pub async fn approve_pull_request( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<()>
Approve a pull request
Sourcepub async fn unapprove_pull_request(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<()>
pub async fn unapprove_pull_request( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<()>
Unapprove a pull request
Sourcepub async fn request_pr_changes(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<()>
pub async fn request_pr_changes( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<()>
Request changes on a pull request
Sourcepub async fn unrequest_pr_changes(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<()>
pub async fn unrequest_pr_changes( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<()>
Withdraw a previous request for changes on a pull request
Sourcepub async fn decline_pull_request(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<PullRequest>
pub async fn decline_pull_request( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<PullRequest>
Decline a pull request
Sourcepub async fn list_recent_pr_comments(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
max_items: usize,
) -> Result<Vec<PullRequestComment>>
pub async fn list_recent_pr_comments( &self, workspace: &str, repo_slug: &str, pr_id: u64, max_items: usize, ) -> Result<Vec<PullRequestComment>>
List the most recent comments on a pull request, newest first.
Requests pages sorted by -created_on and stops following the
pagination next links as soon as max_items comments have been
collected (or the pages are exhausted), so large PRs don’t require
downloading their entire comment history.
Sourcepub async fn get_pr_comment(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
comment_id: u64,
) -> Result<PullRequestComment>
pub async fn get_pr_comment( &self, workspace: &str, repo_slug: &str, pr_id: u64, comment_id: u64, ) -> Result<PullRequestComment>
Get a specific comment on a pull request
Sourcepub async fn update_pr_comment(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
comment_id: u64,
content: &str,
) -> Result<PullRequestComment>
pub async fn update_pr_comment( &self, workspace: &str, repo_slug: &str, pr_id: u64, comment_id: u64, content: &str, ) -> Result<PullRequestComment>
Update the content of an existing pull request comment
Sourcepub async fn delete_pr_comment(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
comment_id: u64,
) -> Result<()>
pub async fn delete_pr_comment( &self, workspace: &str, repo_slug: &str, pr_id: u64, comment_id: u64, ) -> Result<()>
Delete a pull request comment
Sourcepub async fn resolve_pr_comment(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
comment_id: u64,
) -> Result<()>
pub async fn resolve_pr_comment( &self, workspace: &str, repo_slug: &str, pr_id: u64, comment_id: u64, ) -> Result<()>
Resolve a pull request comment thread
Sourcepub async fn unresolve_pr_comment(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
comment_id: u64,
) -> Result<()>
pub async fn unresolve_pr_comment( &self, workspace: &str, repo_slug: &str, pr_id: u64, comment_id: u64, ) -> Result<()>
Reopen (unresolve) a pull request comment thread
Sourcepub async fn get_pr_diff(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<String>
pub async fn get_pr_diff( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<String>
Get the diff for a pull request
Sourcepub async fn get_pr_patch(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<String>
pub async fn get_pr_patch( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<String>
Get the patch (mbox-style) for a pull request
Sourcepub async fn list_pr_commits(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
pagelen: Option<u32>,
) -> Result<Paginated<PrCommit>>
pub async fn list_pr_commits( &self, workspace: &str, repo_slug: &str, pr_id: u64, pagelen: Option<u32>, ) -> Result<Paginated<PrCommit>>
List one page of commits on a pull request
Sourcepub async fn list_pr_statuses(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<Vec<CommitStatus>>
pub async fn list_pr_statuses( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<Vec<CommitStatus>>
List all commit statuses (builds) for a pull request’s head commit
Sourcepub async fn get_pr_diffstat(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
pagelen: Option<u32>,
) -> Result<Paginated<DiffStat>>
pub async fn get_pr_diffstat( &self, workspace: &str, repo_slug: &str, pr_id: u64, pagelen: Option<u32>, ) -> Result<Paginated<DiffStat>>
Get one page of the diffstat (per-file change summary) for a pull request
Sourcepub async fn list_pr_tasks(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
) -> Result<Vec<PrTask>>
pub async fn list_pr_tasks( &self, workspace: &str, repo_slug: &str, pr_id: u64, ) -> Result<Vec<PrTask>>
List all tasks on a pull request
Sourcepub async fn add_pr_task(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
content: &str,
) -> Result<PrTask>
pub async fn add_pr_task( &self, workspace: &str, repo_slug: &str, pr_id: u64, content: &str, ) -> Result<PrTask>
Create a task on a pull request
Sourcepub async fn update_pr_task(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
task_id: u64,
content: Option<&str>,
state: Option<&str>,
) -> Result<PrTask>
pub async fn update_pr_task( &self, workspace: &str, repo_slug: &str, pr_id: u64, task_id: u64, content: Option<&str>, state: Option<&str>, ) -> Result<PrTask>
Update a pull request task’s content and/or state
(state is "RESOLVED" or "UNRESOLVED").
Sourcepub async fn delete_pr_task(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
task_id: u64,
) -> Result<()>
pub async fn delete_pr_task( &self, workspace: &str, repo_slug: &str, pr_id: u64, task_id: u64, ) -> Result<()>
Delete a pull request task
Sourcepub async fn list_pr_activity(
&self,
workspace: &str,
repo_slug: &str,
pr_id: u64,
pagelen: Option<u32>,
) -> Result<Paginated<PrActivity>>
pub async fn list_pr_activity( &self, workspace: &str, repo_slug: &str, pr_id: u64, pagelen: Option<u32>, ) -> Result<Paginated<PrActivity>>
List one page of the activity feed for a pull request
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_branches_filtered(
&self,
workspace: &str,
repo_slug: &str,
query: Option<&str>,
sort: Option<&str>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<BranchDetail>>
pub async fn list_branches_filtered( &self, workspace: &str, repo_slug: &str, query: Option<&str>, sort: Option<&str>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<BranchDetail>>
List branches in a repository, optionally filtered and sorted.
query is a Bitbucket filter expression (e.g. name ~ "feat") passed
as q; sort is a field name, prefix with - for descending
(e.g. -target.date).
Sourcepub async fn create_branch(
&self,
workspace: &str,
repo_slug: &str,
name: &str,
target_hash: &str,
) -> Result<BranchDetail>
pub async fn create_branch( &self, workspace: &str, repo_slug: &str, name: &str, target_hash: &str, ) -> Result<BranchDetail>
Create a branch pointing at target_hash.
Sourcepub async fn get_branch(
&self,
workspace: &str,
repo_slug: &str,
name: &str,
) -> Result<BranchDetail>
pub async fn get_branch( &self, workspace: &str, repo_slug: &str, name: &str, ) -> Result<BranchDetail>
Get a single branch by name.
Sourcepub async fn delete_branch(
&self,
workspace: &str,
repo_slug: &str,
name: &str,
) -> Result<()>
pub async fn delete_branch( &self, workspace: &str, repo_slug: &str, name: &str, ) -> Result<()>
Delete a branch by name.
List tags in a repository, optionally filtered and sorted.
query and sort behave as in Self::list_branches_filtered.
Sourcepub async fn create_tag(
&self,
workspace: &str,
repo_slug: &str,
name: &str,
target_hash: &str,
message: Option<&str>,
) -> Result<TagDetail>
pub async fn create_tag( &self, workspace: &str, repo_slug: &str, name: &str, target_hash: &str, message: Option<&str>, ) -> Result<TagDetail>
Create a tag pointing at target_hash. Passing a message creates an
annotated tag; omitting it creates a lightweight tag.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_repositories(
&self,
workspace: &str,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<Repository>>
pub async fn list_repositories( &self, workspace: &str, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<Repository>>
List repositories for a workspace
Sourcepub async fn list_repositories_filtered(
&self,
workspace: &str,
role: Option<&str>,
query: Option<&str>,
sort: Option<&str>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<Repository>>
pub async fn list_repositories_filtered( &self, workspace: &str, role: Option<&str>, query: Option<&str>, sort: Option<&str>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<Repository>>
List repositories for a workspace with optional filters.
role restricts results to repositories where the caller has at least
that role (member, contributor, admin, or owner), query is a
Bitbucket query (BBQL) expression passed as the q parameter, and
sort names a field to sort by (prefix with - for descending).
Sourcepub async fn get_repository(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<Repository>
pub async fn get_repository( &self, workspace: &str, repo_slug: &str, ) -> Result<Repository>
Get a specific repository
Sourcepub async fn create_repository(
&self,
workspace: &str,
repo_slug: &str,
request: &CreateRepositoryRequest,
) -> Result<Repository>
pub async fn create_repository( &self, workspace: &str, repo_slug: &str, request: &CreateRepositoryRequest, ) -> Result<Repository>
Create a new repository
Sourcepub async fn update_repository(
&self,
workspace: &str,
repo_slug: &str,
request: &UpdateRepositoryRequest,
) -> Result<Repository>
pub async fn update_repository( &self, workspace: &str, repo_slug: &str, request: &UpdateRepositoryRequest, ) -> Result<Repository>
Update settings on an existing repository
Sourcepub async fn delete_repository(
&self,
workspace: &str,
repo_slug: &str,
) -> Result<()>
pub async fn delete_repository( &self, workspace: &str, repo_slug: &str, ) -> Result<()>
Delete a repository
Sourcepub async fn fork_repository(
&self,
workspace: &str,
repo_slug: &str,
new_workspace: Option<&str>,
new_name: Option<&str>,
) -> Result<Repository>
pub async fn fork_repository( &self, workspace: &str, repo_slug: &str, new_workspace: Option<&str>, new_name: Option<&str>, ) -> Result<Repository>
Fork a repository
Sourcepub async fn list_watchers(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<User>>
pub async fn list_watchers( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<User>>
List users watching a repository
Sourcepub async fn list_forks(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<Repository>>
pub async fn list_forks( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<Repository>>
List forks of a repository
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_source(
&self,
workspace: &str,
repo_slug: &str,
git_ref: &str,
path: &str,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<SourceEntry>>
pub async fn list_source( &self, workspace: &str, repo_slug: &str, git_ref: &str, path: &str, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<SourceEntry>>
List the entries of a directory at path (empty string for the
repository root) as of git_ref (branch, tag, or commit hash).
Sourcepub async fn get_file_raw(
&self,
workspace: &str,
repo_slug: &str,
git_ref: &str,
path: &str,
) -> Result<String>
pub async fn get_file_raw( &self, workspace: &str, repo_slug: &str, git_ref: &str, path: &str, ) -> Result<String>
Fetch the raw contents of the file at path as of git_ref.
This is the same endpoint as Self::list_source; pointed at a file
instead of a directory, it returns the file body verbatim.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn get_current_user(&self) -> Result<User>
pub async fn get_current_user(&self) -> Result<User>
Fetch the profile of the currently authenticated user.
Sourcepub async fn get_user(&self, selected: &str) -> Result<User>
pub async fn get_user(&self, selected: &str) -> Result<User>
Fetch a user’s public profile.
selected may be an account ID or a UUID (including surrounding
braces, which are percent-encoded for the URL path).
Sourcepub async fn list_user_emails(&self) -> Result<Paginated<UserEmail>>
pub async fn list_user_emails(&self) -> Result<Paginated<UserEmail>>
List the email addresses associated with the authenticated user.
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_webhooks(
&self,
workspace: &str,
repo_slug: &str,
pagelen: Option<u32>,
) -> Result<Paginated<Webhook>>
pub async fn list_webhooks( &self, workspace: &str, repo_slug: &str, pagelen: Option<u32>, ) -> Result<Paginated<Webhook>>
List webhook subscriptions on a repository
Sourcepub async fn create_webhook(
&self,
workspace: &str,
repo_slug: &str,
request: &CreateWebhookRequest,
) -> Result<Webhook>
pub async fn create_webhook( &self, workspace: &str, repo_slug: &str, request: &CreateWebhookRequest, ) -> Result<Webhook>
Create a webhook subscription on a repository
Sourcepub async fn get_webhook(
&self,
workspace: &str,
repo_slug: &str,
uid: &str,
) -> Result<Webhook>
pub async fn get_webhook( &self, workspace: &str, repo_slug: &str, uid: &str, ) -> Result<Webhook>
Get a single webhook subscription by its UID (the brace-wrapped UUID)
Sourcepub async fn update_webhook(
&self,
workspace: &str,
repo_slug: &str,
uid: &str,
request: &CreateWebhookRequest,
) -> Result<Webhook>
pub async fn update_webhook( &self, workspace: &str, repo_slug: &str, uid: &str, request: &CreateWebhookRequest, ) -> Result<Webhook>
Replace a webhook subscription.
Bitbucket’s PUT replaces the entire subscription, so request must
carry the full desired state (see CreateWebhookRequest).
Source§impl BitbucketClient
impl BitbucketClient
Sourcepub async fn list_workspaces(&self) -> Result<Vec<Workspace>>
pub async fn list_workspaces(&self) -> Result<Vec<Workspace>>
List all workspaces the authenticated user has access to, following pagination until every page has been fetched
Sourcepub async fn list_workspaces_filtered(
&self,
role: Option<&str>,
query: Option<&str>,
sort: Option<&str>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<Workspace>>
pub async fn list_workspaces_filtered( &self, role: Option<&str>, query: Option<&str>, sort: Option<&str>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<Workspace>>
List a single page of workspaces with optional filters.
role restricts results to workspaces where the caller has at least
that role (member, collaborator, or owner), query is a Bitbucket
query (BBQL) expression passed as the q parameter, and sort names
a field to sort by (prefix with - for descending).
Sourcepub async fn get_workspace(&self, workspace: &str) -> Result<Workspace>
pub async fn get_workspace(&self, workspace: &str) -> Result<Workspace>
Get a single workspace by slug or UUID
Sourcepub async fn list_workspace_members(
&self,
workspace: &str,
pagelen: Option<u32>,
) -> Result<Paginated<WorkspaceMembership>>
pub async fn list_workspace_members( &self, workspace: &str, pagelen: Option<u32>, ) -> Result<Paginated<WorkspaceMembership>>
List a page of members of a workspace
Sourcepub async fn list_workspace_permissions(
&self,
workspace: &str,
repo_slug: Option<&str>,
page: Option<u32>,
pagelen: Option<u32>,
) -> Result<Paginated<WorkspacePermission>>
pub async fn list_workspace_permissions( &self, workspace: &str, repo_slug: Option<&str>, page: Option<u32>, pagelen: Option<u32>, ) -> Result<Paginated<WorkspacePermission>>
List a page of user permissions on a workspace, or — when repo_slug
is given — on a single repository in that workspace.
Trait Implementations§
Source§impl Clone for BitbucketClient
impl Clone for BitbucketClient
Source§fn clone(&self) -> BitbucketClient
fn clone(&self) -> BitbucketClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BitbucketClient
impl !UnwindSafe for BitbucketClient
impl Freeze for BitbucketClient
impl Send for BitbucketClient
impl Sync for BitbucketClient
impl Unpin for BitbucketClient
impl UnsafeUnpin for BitbucketClient
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
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> ⓘ
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> ⓘ
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