Struct aws_sdk_codecommit::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS CodeCommit
Client for invoking operations on AWS CodeCommit. Each operation on AWS CodeCommit is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_codecommit::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_codecommit::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_codecommit::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn associate_approval_rule_template_with_repository(
&self
) -> AssociateApprovalRuleTemplateWithRepository
pub fn associate_approval_rule_template_with_repository(
&self
) -> AssociateApprovalRuleTemplateWithRepository
Constructs a fluent builder for the AssociateApprovalRuleTemplateWithRepository
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name for the approval rule template.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that you want to associate with the template.
- On success, responds with
AssociateApprovalRuleTemplateWithRepositoryOutput
- On failure, responds with
SdkError<AssociateApprovalRuleTemplateWithRepositoryError>
sourcepub fn batch_associate_approval_rule_template_with_repositories(
&self
) -> BatchAssociateApprovalRuleTemplateWithRepositories
pub fn batch_associate_approval_rule_template_with_repositories(
&self
) -> BatchAssociateApprovalRuleTemplateWithRepositories
Constructs a fluent builder for the BatchAssociateApprovalRuleTemplateWithRepositories
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the template you want to associate with one or more repositories.
repository_names(Vec<String>)
/set_repository_names(Option<Vec<String>>)
:The names of the repositories you want to associate with the template.
The length constraint limit is for each string in the array. The array itself can be empty.
- On success, responds with
BatchAssociateApprovalRuleTemplateWithRepositoriesOutput
with field(s):associated_repository_names(Option<Vec<String>>)
:A list of names of the repositories that have been associated with the template.
errors(Option<Vec<BatchAssociateApprovalRuleTemplateWithRepositoriesError>>)
:A list of any errors that might have occurred while attempting to create the association between the template and the repositories.
- On failure, responds with
SdkError<BatchAssociateApprovalRuleTemplateWithRepositoriesError>
sourcepub fn batch_describe_merge_conflicts(&self) -> BatchDescribeMergeConflicts
pub fn batch_describe_merge_conflicts(&self) -> BatchDescribeMergeConflicts
Constructs a fluent builder for the BatchDescribeMergeConflicts
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the merge conflicts you want to review.
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
merge_option(MergeOptionTypeEnum)
/set_merge_option(Option<MergeOptionTypeEnum>)
:The merge option or strategy you want to use to merge the code.
max_merge_hunks(i32)
/set_max_merge_hunks(Option<i32>)
:The maximum number of merge hunks to include in the output.
max_conflict_files(i32)
/set_max_conflict_files(Option<i32>)
:The maximum number of files to include in the output.
file_paths(Vec<String>)
/set_file_paths(Option<Vec<String>>)
:The path of the target files used to describe the conflicts. If not specified, the default is all conflict files.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
- On success, responds with
BatchDescribeMergeConflictsOutput
with field(s):conflicts(Option<Vec<Conflict>>)
:A list of conflicts for each file, including the conflict metadata and the hunks of the differences between the files.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
errors(Option<Vec<BatchDescribeMergeConflictsError>>)
:A list of any errors returned while describing the merge conflicts for each file.
destination_commit_id(Option<String>)
:The commit ID of the destination commit specifier that was used in the merge evaluation.
source_commit_id(Option<String>)
:The commit ID of the source commit specifier that was used in the merge evaluation.
base_commit_id(Option<String>)
:The commit ID of the merge base.
- On failure, responds with
SdkError<BatchDescribeMergeConflictsError>
sourcepub fn batch_disassociate_approval_rule_template_from_repositories(
&self
) -> BatchDisassociateApprovalRuleTemplateFromRepositories
pub fn batch_disassociate_approval_rule_template_from_repositories(
&self
) -> BatchDisassociateApprovalRuleTemplateFromRepositories
Constructs a fluent builder for the BatchDisassociateApprovalRuleTemplateFromRepositories
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the template that you want to disassociate from one or more repositories.
repository_names(Vec<String>)
/set_repository_names(Option<Vec<String>>)
:The repository names that you want to disassociate from the approval rule template.
The length constraint limit is for each string in the array. The array itself can be empty.
- On success, responds with
BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput
with field(s):disassociated_repository_names(Option<Vec<String>>)
:A list of repository names that have had their association with the template removed.
errors(Option<Vec<BatchDisassociateApprovalRuleTemplateFromRepositoriesError>>)
:A list of any errors that might have occurred while attempting to remove the association between the template and the repositories.
- On failure, responds with
SdkError<BatchDisassociateApprovalRuleTemplateFromRepositoriesError>
sourcepub fn batch_get_commits(&self) -> BatchGetCommits
pub fn batch_get_commits(&self) -> BatchGetCommits
Constructs a fluent builder for the BatchGetCommits
operation.
- The fluent builder is configurable:
commit_ids(Vec<String>)
/set_commit_ids(Option<Vec<String>>)
:The full commit IDs of the commits to get information about.
You must supply the full SHA IDs of each commit. You cannot use shortened SHA IDs.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the commits.
- On success, responds with
BatchGetCommitsOutput
with field(s):commits(Option<Vec<Commit>>)
:An array of commit data type objects, each of which contains information about a specified commit.
errors(Option<Vec<BatchGetCommitsError>>)
:Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
- On failure, responds with
SdkError<BatchGetCommitsError>
sourcepub fn batch_get_repositories(&self) -> BatchGetRepositories
pub fn batch_get_repositories(&self) -> BatchGetRepositories
Constructs a fluent builder for the BatchGetRepositories
operation.
- The fluent builder is configurable:
repository_names(Vec<String>)
/set_repository_names(Option<Vec<String>>)
:The names of the repositories to get information about.
The length constraint limit is for each string in the array. The array itself can be empty.
- On success, responds with
BatchGetRepositoriesOutput
with field(s):repositories(Option<Vec<RepositoryMetadata>>)
:A list of repositories returned by the batch get repositories operation.
repositories_not_found(Option<Vec<String>>)
:Returns a list of repository names for which information could not be found.
- On failure, responds with
SdkError<BatchGetRepositoriesError>
sourcepub fn create_approval_rule_template(&self) -> CreateApprovalRuleTemplate
pub fn create_approval_rule_template(&self) -> CreateApprovalRuleTemplate
Constructs a fluent builder for the CreateApprovalRuleTemplate
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the approval rule template. Provide descriptive names, because this name is applied to the approval rules created automatically in associated repositories.
approval_rule_template_content(impl Into<String>)
/set_approval_rule_template_content(Option<String>)
:The content of the approval rule that is created on pull requests in associated repositories. If you specify one or more destination references (branches), approval rules are created in an associated repository only if their destination references (branches) match those specified in the template.
When you create the content of the approval rule template, you can specify approvers in an approval pool in one of two ways:
-
CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following are counted as approvals coming from that user:
-
An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)
-
A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).
-
-
Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.
For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.
-
approval_rule_template_description(impl Into<String>)
/set_approval_rule_template_description(Option<String>)
:The description of the approval rule template. Consider providing a description that explains what this template does and when it might be appropriate to associate it with repositories.
- On success, responds with
CreateApprovalRuleTemplateOutput
with field(s):approval_rule_template(Option<ApprovalRuleTemplate>)
:The content and structure of the created approval rule template.
- On failure, responds with
SdkError<CreateApprovalRuleTemplateError>
sourcepub fn create_branch(&self) -> CreateBranch
pub fn create_branch(&self) -> CreateBranch
Constructs a fluent builder for the CreateBranch
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository in which you want to create the new branch.
branch_name(impl Into<String>)
/set_branch_name(Option<String>)
:The name of the new branch to create.
commit_id(impl Into<String>)
/set_commit_id(Option<String>)
:The ID of the commit to point the new branch to.
- On success, responds with
CreateBranchOutput
- On failure, responds with
SdkError<CreateBranchError>
sourcepub fn create_commit(&self) -> CreateCommit
pub fn create_commit(&self) -> CreateCommit
Constructs a fluent builder for the CreateCommit
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you create the commit.
branch_name(impl Into<String>)
/set_branch_name(Option<String>)
:The name of the branch where you create the commit.
parent_commit_id(impl Into<String>)
/set_parent_commit_id(Option<String>)
:The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
author_name(impl Into<String>)
/set_author_name(Option<String>)
:The name of the author who created the commit. This information is used as both the author and committer for the commit.
email(impl Into<String>)
/set_email(Option<String>)
:The email address of the person who created the commit.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
put_files(Vec<PutFileEntry>)
/set_put_files(Option<Vec<PutFileEntry>>)
:The files to add or update in this commit.
delete_files(Vec<DeleteFileEntry>)
/set_delete_files(Option<Vec<DeleteFileEntry>>)
:The files to delete in this commit. These files still exist in earlier commits.
set_file_modes(Vec<SetFileModeEntry>)
/set_set_file_modes(Option<Vec<SetFileModeEntry>>)
:The file modes to update for files in this commit.
- On success, responds with
CreateCommitOutput
with field(s):commit_id(Option<String>)
:The full commit ID of the commit that contains your committed file changes.
tree_id(Option<String>)
:The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
files_added(Option<Vec<FileMetadata>>)
:The files added as part of the committed file changes.
files_updated(Option<Vec<FileMetadata>>)
:The files updated as part of the commited file changes.
files_deleted(Option<Vec<FileMetadata>>)
:The files deleted as part of the committed file changes.
- On failure, responds with
SdkError<CreateCommitError>
sourcepub fn create_pull_request(&self) -> CreatePullRequest
pub fn create_pull_request(&self) -> CreatePullRequest
Constructs a fluent builder for the CreatePullRequest
operation.
- The fluent builder is configurable:
title(impl Into<String>)
/set_title(Option<String>)
:The title of the pull request. This title is used to identify the pull request to other users in the repository.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the pull request.
targets(Vec<Target>)
/set_targets(Option<Vec<Target>>)
:The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.
- On success, responds with
CreatePullRequestOutput
with field(s):pull_request(Option<PullRequest>)
:Information about the newly created pull request.
- On failure, responds with
SdkError<CreatePullRequestError>
sourcepub fn create_pull_request_approval_rule(&self) -> CreatePullRequestApprovalRule
pub fn create_pull_request_approval_rule(&self) -> CreatePullRequestApprovalRule
Constructs a fluent builder for the CreatePullRequestApprovalRule
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request for which you want to create the approval rule.
approval_rule_name(impl Into<String>)
/set_approval_rule_name(Option<String>)
:The name for the approval rule.
approval_rule_content(impl Into<String>)
/set_approval_rule_content(Option<String>)
:The content of the approval rule, including the number of approvals needed and the structure of an approval pool defined for approvals, if any. For more information about approval pools, see the AWS CodeCommit User Guide.
When you create the content of the approval rule, you can specify approvers in an approval pool in one of two ways:
-
CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following would be counted as approvals coming from that user:
-
An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)
-
A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).
-
-
Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.
For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.
-
- On success, responds with
CreatePullRequestApprovalRuleOutput
with field(s):approval_rule(Option<ApprovalRule>)
:Information about the created approval rule.
- On failure, responds with
SdkError<CreatePullRequestApprovalRuleError>
sourcepub fn create_repository(&self) -> CreateRepository
pub fn create_repository(&self) -> CreateRepository
Constructs a fluent builder for the CreateRepository
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the new repository to be created.
The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix .git is prohibited.
repository_description(impl Into<String>)
/set_repository_description(Option<String>)
:A comment or description about the new repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:One or more tag key-value pairs to use when tagging this repository.
- On success, responds with
CreateRepositoryOutput
with field(s):repository_metadata(Option<RepositoryMetadata>)
:Information about the newly created repository.
- On failure, responds with
SdkError<CreateRepositoryError>
sourcepub fn create_unreferenced_merge_commit(&self) -> CreateUnreferencedMergeCommit
pub fn create_unreferenced_merge_commit(&self) -> CreateUnreferencedMergeCommit
Constructs a fluent builder for the CreateUnreferencedMergeCommit
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to create the unreferenced merge commit.
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
merge_option(MergeOptionTypeEnum)
/set_merge_option(Option<MergeOptionTypeEnum>)
:The merge option or strategy you want to use to merge the code.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
author_name(impl Into<String>)
/set_author_name(Option<String>)
:The name of the author who created the unreferenced commit. This information is used as both the author and committer for the commit.
email(impl Into<String>)
/set_email(Option<String>)
:The email address for the person who created the unreferenced commit.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message for the unreferenced commit.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file is created for empty folders. The default is false.
conflict_resolution(ConflictResolution)
/set_conflict_resolution(Option<ConflictResolution>)
:If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- On success, responds with
CreateUnreferencedMergeCommitOutput
with field(s):commit_id(Option<String>)
:The full commit ID of the commit that contains your merge results.
tree_id(Option<String>)
:The full SHA-1 pointer of the tree information for the commit that contains the merge results.
- On failure, responds with
SdkError<CreateUnreferencedMergeCommitError>
sourcepub fn delete_approval_rule_template(&self) -> DeleteApprovalRuleTemplate
pub fn delete_approval_rule_template(&self) -> DeleteApprovalRuleTemplate
Constructs a fluent builder for the DeleteApprovalRuleTemplate
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the approval rule template to delete.
- On success, responds with
DeleteApprovalRuleTemplateOutput
with field(s):approval_rule_template_id(Option<String>)
:The system-generated ID of the deleted approval rule template. If the template has been previously deleted, the only response is a 200 OK.
- On failure, responds with
SdkError<DeleteApprovalRuleTemplateError>
sourcepub fn delete_branch(&self) -> DeleteBranch
pub fn delete_branch(&self) -> DeleteBranch
Constructs a fluent builder for the DeleteBranch
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the branch to be deleted.
branch_name(impl Into<String>)
/set_branch_name(Option<String>)
:The name of the branch to delete.
- On success, responds with
DeleteBranchOutput
with field(s):deleted_branch(Option<BranchInfo>)
:Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
- On failure, responds with
SdkError<DeleteBranchError>
sourcepub fn delete_comment_content(&self) -> DeleteCommentContent
pub fn delete_comment_content(&self) -> DeleteCommentContent
Constructs a fluent builder for the DeleteCommentContent
operation.
- The fluent builder is configurable:
comment_id(impl Into<String>)
/set_comment_id(Option<String>)
:The unique, system-generated ID of the comment. To get this ID, use
GetCommentsForComparedCommit
orGetCommentsForPullRequest
.
- On success, responds with
DeleteCommentContentOutput
with field(s):comment(Option<Comment>)
:Information about the comment you just deleted.
- On failure, responds with
SdkError<DeleteCommentContentError>
sourcepub fn delete_file(&self) -> DeleteFile
pub fn delete_file(&self) -> DeleteFile
Constructs a fluent builder for the DeleteFile
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the file to delete.
branch_name(impl Into<String>)
/set_branch_name(Option<String>)
:The name of the branch where the commit that deletes the file is made.
file_path(impl Into<String>)
/set_file_path(Option<String>)
:The fully qualified path to the file that to be deleted, including the full name and extension of that file. For example, /examples/file.md is a fully qualified path to a file named file.md in a folder named examples.
parent_commit_id(impl Into<String>)
/set_parent_commit_id(Option<String>)
:The ID of the commit that is the tip of the branch where you want to create the commit that deletes the file. This must be the HEAD commit for the branch. The commit that deletes the file is created from this commit ID.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If a file is the only object in the folder or directory, specifies whether to delete the folder or directory that contains the file. By default, empty folders are deleted. This includes empty folders that are part of the directory structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the last file in dir4 also deletes the empty folders dir4, dir3, and dir2.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message you want to include as part of deleting the file. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the author of the commit that deletes the file. If no name is specified, the user’s ARN is used as the author name and committer name.
email(impl Into<String>)
/set_email(Option<String>)
:The email address for the commit that deletes the file. If no email address is specified, the email address is left blank.
- On success, responds with
DeleteFileOutput
with field(s):commit_id(Option<String>)
:The full commit ID of the commit that contains the change that deletes the file.
blob_id(Option<String>)
:The blob ID removed from the tree as part of deleting the file.
tree_id(Option<String>)
:The full SHA-1 pointer of the tree information for the commit that contains the delete file change.
file_path(Option<String>)
:The fully qualified path to the file to be deleted, including the full name and extension of that file.
- On failure, responds with
SdkError<DeleteFileError>
sourcepub fn delete_pull_request_approval_rule(&self) -> DeletePullRequestApprovalRule
pub fn delete_pull_request_approval_rule(&self) -> DeletePullRequestApprovalRule
Constructs a fluent builder for the DeletePullRequestApprovalRule
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request that contains the approval rule you want to delete.
approval_rule_name(impl Into<String>)
/set_approval_rule_name(Option<String>)
:The name of the approval rule you want to delete.
- On success, responds with
DeletePullRequestApprovalRuleOutput
with field(s):approval_rule_id(Option<String>)
:The ID of the deleted approval rule.
If the approval rule was deleted in an earlier API call, the response is 200 OK without content.
- On failure, responds with
SdkError<DeletePullRequestApprovalRuleError>
sourcepub fn delete_repository(&self) -> DeleteRepository
pub fn delete_repository(&self) -> DeleteRepository
Constructs a fluent builder for the DeleteRepository
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to delete.
- On success, responds with
DeleteRepositoryOutput
with field(s):repository_id(Option<String>)
:The ID of the repository that was deleted.
- On failure, responds with
SdkError<DeleteRepositoryError>
sourcepub fn describe_merge_conflicts(&self) -> DescribeMergeConflicts
pub fn describe_merge_conflicts(&self) -> DescribeMergeConflicts
Constructs a fluent builder for the DescribeMergeConflicts
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to get information about a merge conflict.
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
merge_option(MergeOptionTypeEnum)
/set_merge_option(Option<MergeOptionTypeEnum>)
:The merge option or strategy you want to use to merge the code.
max_merge_hunks(i32)
/set_max_merge_hunks(Option<i32>)
:The maximum number of merge hunks to include in the output.
file_path(impl Into<String>)
/set_file_path(Option<String>)
:The path of the target files used to describe the conflicts.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
- On success, responds with
DescribeMergeConflictsOutput
with field(s):conflict_metadata(Option<ConflictMetadata>)
:Contains metadata about the conflicts found in the merge.
merge_hunks(Option<Vec<MergeHunk>>)
:A list of merge hunks of the differences between the files or lines.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
destination_commit_id(Option<String>)
:The commit ID of the destination commit specifier that was used in the merge evaluation.
source_commit_id(Option<String>)
:The commit ID of the source commit specifier that was used in the merge evaluation.
base_commit_id(Option<String>)
:The commit ID of the merge base.
- On failure, responds with
SdkError<DescribeMergeConflictsError>
sourcepub fn describe_pull_request_events(&self) -> DescribePullRequestEvents
pub fn describe_pull_request_events(&self) -> DescribePullRequestEvents
Constructs a fluent builder for the DescribePullRequestEvents
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.pull_request_event_type(PullRequestEventType)
/set_pull_request_event_type(Option<PullRequestEventType>)
:Optional. The pull request event type about which you want to return information.
actor_arn(impl Into<String>)
/set_actor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with more commits or changing the status of a pull request.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results. The default is 100 events, which is also the maximum number of events that can be returned in a result.
- On success, responds with
DescribePullRequestEventsOutput
with field(s):pull_request_events(Option<Vec<PullRequestEvent>>)
:Information about the pull request events.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
- On failure, responds with
SdkError<DescribePullRequestEventsError>
sourcepub fn disassociate_approval_rule_template_from_repository(
&self
) -> DisassociateApprovalRuleTemplateFromRepository
pub fn disassociate_approval_rule_template_from_repository(
&self
) -> DisassociateApprovalRuleTemplateFromRepository
Constructs a fluent builder for the DisassociateApprovalRuleTemplateFromRepository
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the approval rule template to disassociate from a specified repository.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository you want to disassociate from the template.
- On success, responds with
DisassociateApprovalRuleTemplateFromRepositoryOutput
- On failure, responds with
SdkError<DisassociateApprovalRuleTemplateFromRepositoryError>
sourcepub fn evaluate_pull_request_approval_rules(
&self
) -> EvaluatePullRequestApprovalRules
pub fn evaluate_pull_request_approval_rules(
&self
) -> EvaluatePullRequestApprovalRules
Constructs a fluent builder for the EvaluatePullRequestApprovalRules
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request you want to evaluate.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use
GetPullRequest
.
- On success, responds with
EvaluatePullRequestApprovalRulesOutput
with field(s):evaluation(Option<Evaluation>)
:The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.
- On failure, responds with
SdkError<EvaluatePullRequestApprovalRulesError>
sourcepub fn get_approval_rule_template(&self) -> GetApprovalRuleTemplate
pub fn get_approval_rule_template(&self) -> GetApprovalRuleTemplate
Constructs a fluent builder for the GetApprovalRuleTemplate
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the approval rule template for which you want to get information.
- On success, responds with
GetApprovalRuleTemplateOutput
with field(s):approval_rule_template(Option<ApprovalRuleTemplate>)
:The content and structure of the approval rule template.
- On failure, responds with
SdkError<GetApprovalRuleTemplateError>
sourcepub fn get_blob(&self) -> GetBlob
pub fn get_blob(&self) -> GetBlob
Constructs a fluent builder for the GetBlob
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the blob.
blob_id(impl Into<String>)
/set_blob_id(Option<String>)
:The ID of the blob, which is its SHA-1 pointer.
- On success, responds with
GetBlobOutput
with field(s):content(Option<Blob>)
:The content of the blob, usually a file.
- On failure, responds with
SdkError<GetBlobError>
sourcepub fn get_branch(&self) -> GetBranch
pub fn get_branch(&self) -> GetBranch
Constructs a fluent builder for the GetBranch
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the branch for which you want to retrieve information.
branch_name(impl Into<String>)
/set_branch_name(Option<String>)
:The name of the branch for which you want to retrieve information.
- On success, responds with
GetBranchOutput
with field(s):branch(Option<BranchInfo>)
:The name of the branch.
- On failure, responds with
SdkError<GetBranchError>
sourcepub fn get_comment(&self) -> GetComment
pub fn get_comment(&self) -> GetComment
Constructs a fluent builder for the GetComment
operation.
- The fluent builder is configurable:
comment_id(impl Into<String>)
/set_comment_id(Option<String>)
:The unique, system-generated ID of the comment. To get this ID, use
GetCommentsForComparedCommit
orGetCommentsForPullRequest
.
- On success, responds with
GetCommentOutput
with field(s):comment(Option<Comment>)
:The contents of the comment.
- On failure, responds with
SdkError<GetCommentError>
sourcepub fn get_comment_reactions(&self) -> GetCommentReactions
pub fn get_comment_reactions(&self) -> GetCommentReactions
Constructs a fluent builder for the GetCommentReactions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
comment_id(impl Into<String>)
/set_comment_id(Option<String>)
:The ID of the comment for which you want to get reactions information.
reaction_user_arn(impl Into<String>)
/set_reaction_user_arn(Option<String>)
:Optional. The Amazon Resource Name (ARN) of the user or identity for which you want to get reaction information.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results. The default is the same as the allowed maximum, 1,000.
- On success, responds with
GetCommentReactionsOutput
with field(s):reactions_for_comment(Option<Vec<ReactionForComment>>)
:An array of reactions to the specified comment.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
- On failure, responds with
SdkError<GetCommentReactionsError>
sourcepub fn get_comments_for_compared_commit(&self) -> GetCommentsForComparedCommit
pub fn get_comments_for_compared_commit(&self) -> GetCommentsForComparedCommit
Constructs a fluent builder for the GetCommentsForComparedCommit
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to compare commits.
before_commit_id(impl Into<String>)
/set_before_commit_id(Option<String>)
:To establish the directionality of the comparison, the full commit ID of the before commit.
after_commit_id(impl Into<String>)
/set_after_commit_id(Option<String>)
:To establish the directionality of the comparison, the full commit ID of the after commit.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments, but you can configure up to 500.
- On success, responds with
GetCommentsForComparedCommitOutput
with field(s):comments_for_compared_commit_data(Option<Vec<CommentsForComparedCommit>>)
:A list of comment objects on the compared commit.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
- On failure, responds with
SdkError<GetCommentsForComparedCommitError>
sourcepub fn get_comments_for_pull_request(&self) -> GetCommentsForPullRequest
pub fn get_comments_for_pull_request(&self) -> GetCommentsForPullRequest
Constructs a fluent builder for the GetCommentsForPullRequest
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the pull request.
before_commit_id(impl Into<String>)
/set_before_commit_id(Option<String>)
:The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
after_commit_id(impl Into<String>)
/set_after_commit_id(Option<String>)
:The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
- On success, responds with
GetCommentsForPullRequestOutput
with field(s):comments_for_pull_request_data(Option<Vec<CommentsForPullRequest>>)
:An array of comment objects on the pull request.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
- On failure, responds with
SdkError<GetCommentsForPullRequestError>
sourcepub fn get_commit(&self) -> GetCommit
pub fn get_commit(&self) -> GetCommit
Constructs a fluent builder for the GetCommit
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to which the commit was made.
commit_id(impl Into<String>)
/set_commit_id(Option<String>)
:The commit ID. Commit IDs are the full SHA ID of the commit.
- On success, responds with
GetCommitOutput
with field(s):commit(Option<Commit>)
:A commit data type object that contains information about the specified commit.
- On failure, responds with
SdkError<GetCommitError>
sourcepub fn get_differences(&self) -> GetDifferences
pub fn get_differences(&self) -> GetDifferences
Constructs a fluent builder for the GetDifferences
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to get differences.
before_commit_specifier(impl Into<String>)
/set_before_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the
afterCommitSpecifier
value are shown. If you do not usebeforeCommitSpecifier
in your request, consider limiting the results withmaxResults
.after_commit_specifier(impl Into<String>)
/set_after_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
before_path(impl Into<String>)
/set_before_path(Option<String>)
:The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If
beforePath
andafterPath
are not specified, differences are shown for all paths.after_path(impl Into<String>)
/set_after_path(Option<String>)
:The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
- On success, responds with
GetDifferencesOutput
with field(s):differences(Option<Vec<Difference>>)
:A data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
- On failure, responds with
SdkError<GetDifferencesError>
sourcepub fn get_file(&self) -> GetFile
pub fn get_file(&self) -> GetFile
Constructs a fluent builder for the GetFile
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the file.
commit_specifier(impl Into<String>)
/set_commit_specifier(Option<String>)
:The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/master. If none is provided, the head commit is used.
file_path(impl Into<String>)
/set_file_path(Option<String>)
:The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.
- On success, responds with
GetFileOutput
with field(s):commit_id(Option<String>)
:The full commit ID of the commit that contains the content returned by GetFile.
blob_id(Option<String>)
:The blob ID of the object that represents the file content.
file_path(Option<String>)
:The fully qualified path to the specified file. Returns the name and extension of the file.
file_mode(Option<FileModeTypeEnum>)
:The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
file_size(i64)
:The size of the contents of the file, in bytes.
file_content(Option<Blob>)
:The base-64 encoded binary data object that represents the content of the file.
- On failure, responds with
SdkError<GetFileError>
sourcepub fn get_folder(&self) -> GetFolder
pub fn get_folder(&self) -> GetFolder
Constructs a fluent builder for the GetFolder
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository.
commit_specifier(impl Into<String>)
/set_commit_specifier(Option<String>)
:A fully qualified reference used to identify a commit that contains the version of the folder’s content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.
folder_path(impl Into<String>)
/set_folder_path(Option<String>)
:The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- On success, responds with
GetFolderOutput
with field(s):commit_id(Option<String>)
:The full commit ID used as a reference for the returned version of the folder content.
folder_path(Option<String>)
:The fully qualified path of the folder whose contents are returned.
tree_id(Option<String>)
:The full SHA-1 pointer of the tree information for the commit that contains the folder.
sub_folders(Option<Vec<Folder>>)
:The list of folders that exist under the specified folder, if any.
files(Option<Vec<File>>)
:The list of files in the specified folder, if any.
symbolic_links(Option<Vec<SymbolicLink>>)
:The list of symbolic links to other files and folders in the specified folder, if any.
sub_modules(Option<Vec<SubModule>>)
:The list of submodules in the specified folder, if any.
- On failure, responds with
SdkError<GetFolderError>
sourcepub fn get_merge_commit(&self) -> GetMergeCommit
pub fn get_merge_commit(&self) -> GetMergeCommit
Constructs a fluent builder for the GetMergeCommit
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the merge commit about which you want to get information.
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
- On success, responds with
GetMergeCommitOutput
with field(s):source_commit_id(Option<String>)
:The commit ID of the source commit specifier that was used in the merge evaluation.
destination_commit_id(Option<String>)
:The commit ID of the destination commit specifier that was used in the merge evaluation.
base_commit_id(Option<String>)
:The commit ID of the merge base.
merged_commit_id(Option<String>)
:The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.
- On failure, responds with
SdkError<GetMergeCommitError>
sourcepub fn get_merge_conflicts(&self) -> GetMergeConflicts
pub fn get_merge_conflicts(&self) -> GetMergeConflicts
Constructs a fluent builder for the GetMergeConflicts
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where the pull request was created.
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
merge_option(MergeOptionTypeEnum)
/set_merge_option(Option<MergeOptionTypeEnum>)
:The merge option or strategy you want to use to merge the code.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
max_conflict_files(i32)
/set_max_conflict_files(Option<i32>)
:The maximum number of files to include in the output.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
- On success, responds with
GetMergeConflictsOutput
with field(s):mergeable(bool)
:A Boolean value that indicates whether the code is mergeable by the specified merge option.
destination_commit_id(Option<String>)
:The commit ID of the destination commit specifier that was used in the merge evaluation.
source_commit_id(Option<String>)
:The commit ID of the source commit specifier that was used in the merge evaluation.
base_commit_id(Option<String>)
:The commit ID of the merge base.
conflict_metadata_list(Option<Vec<ConflictMetadata>>)
:A list of metadata for any conflicting files. If the specified merge strategy is FAST_FORWARD_MERGE, this list is always empty.
next_token(Option<String>)
:An enumeration token that can be used in a request to return the next batch of the results.
- On failure, responds with
SdkError<GetMergeConflictsError>
sourcepub fn get_merge_options(&self) -> GetMergeOptions
pub fn get_merge_options(&self) -> GetMergeOptions
Constructs a fluent builder for the GetMergeOptions
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the commits about which you want to get merge options.
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
- On success, responds with
GetMergeOptionsOutput
with field(s):merge_options(Option<Vec<MergeOptionTypeEnum>>)
:The merge option or strategy used to merge the code.
source_commit_id(Option<String>)
:The commit ID of the source commit specifier that was used in the merge evaluation.
destination_commit_id(Option<String>)
:The commit ID of the destination commit specifier that was used in the merge evaluation.
base_commit_id(Option<String>)
:The commit ID of the merge base.
- On failure, responds with
SdkError<GetMergeOptionsError>
sourcepub fn get_pull_request(&self) -> GetPullRequest
pub fn get_pull_request(&self) -> GetPullRequest
Constructs a fluent builder for the GetPullRequest
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.
- On success, responds with
GetPullRequestOutput
with field(s):pull_request(Option<PullRequest>)
:Information about the specified pull request.
- On failure, responds with
SdkError<GetPullRequestError>
sourcepub fn get_pull_request_approval_states(&self) -> GetPullRequestApprovalStates
pub fn get_pull_request_approval_states(&self) -> GetPullRequestApprovalStates
Constructs a fluent builder for the GetPullRequestApprovalStates
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID for the pull request.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:The system-generated ID for the pull request revision.
- On success, responds with
GetPullRequestApprovalStatesOutput
with field(s):approvals(Option<Vec<Approval>>)
:Information about users who have approved the pull request.
- On failure, responds with
SdkError<GetPullRequestApprovalStatesError>
sourcepub fn get_pull_request_override_state(&self) -> GetPullRequestOverrideState
pub fn get_pull_request_override_state(&self) -> GetPullRequestOverrideState
Constructs a fluent builder for the GetPullRequestOverrideState
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The ID of the pull request for which you want to get information about whether approval rules have been set aside (overridden).
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:The system-generated ID of the revision for the pull request. To retrieve the most recent revision ID, use
GetPullRequest
.
- On success, responds with
GetPullRequestOverrideStateOutput
with field(s):overridden(bool)
:A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).
overrider(Option<String>)
:The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
- On failure, responds with
SdkError<GetPullRequestOverrideStateError>
sourcepub fn get_repository(&self) -> GetRepository
pub fn get_repository(&self) -> GetRepository
Constructs a fluent builder for the GetRepository
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to get information about.
- On success, responds with
GetRepositoryOutput
with field(s):repository_metadata(Option<RepositoryMetadata>)
:Information about the repository.
- On failure, responds with
SdkError<GetRepositoryError>
sourcepub fn get_repository_triggers(&self) -> GetRepositoryTriggers
pub fn get_repository_triggers(&self) -> GetRepositoryTriggers
Constructs a fluent builder for the GetRepositoryTriggers
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository for which the trigger is configured.
- On success, responds with
GetRepositoryTriggersOutput
with field(s):configuration_id(Option<String>)
:The system-generated unique ID for the trigger.
triggers(Option<Vec<RepositoryTrigger>>)
:The JSON block of configuration information for each trigger.
- On failure, responds with
SdkError<GetRepositoryTriggersError>
sourcepub fn list_approval_rule_templates(&self) -> ListApprovalRuleTemplates
pub fn list_approval_rule_templates(&self) -> ListApprovalRuleTemplates
Constructs a fluent builder for the ListApprovalRuleTemplates
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results.
- On success, responds with
ListApprovalRuleTemplatesOutput
with field(s):approval_rule_template_names(Option<Vec<String>>)
:The names of all the approval rule templates found in the AWS Region for your AWS account.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the next results of the operation.
- On failure, responds with
SdkError<ListApprovalRuleTemplatesError>
sourcepub fn list_associated_approval_rule_templates_for_repository(
&self
) -> ListAssociatedApprovalRuleTemplatesForRepository
pub fn list_associated_approval_rule_templates_for_repository(
&self
) -> ListAssociatedApprovalRuleTemplatesForRepository
Constructs a fluent builder for the ListAssociatedApprovalRuleTemplatesForRepository
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository for which you want to list all associated approval rule templates.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results.
- On success, responds with
ListAssociatedApprovalRuleTemplatesForRepositoryOutput
with field(s):approval_rule_template_names(Option<Vec<String>>)
:The names of all approval rule templates associated with the repository.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the next results of the operation.
- On failure, responds with
SdkError<ListAssociatedApprovalRuleTemplatesForRepositoryError>
sourcepub fn list_branches(&self) -> ListBranches
pub fn list_branches(&self) -> ListBranches
Constructs a fluent builder for the ListBranches
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository that contains the branches.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that allows the operation to batch the results.
- On success, responds with
ListBranchesOutput
with field(s):branches(Option<Vec<String>>)
:The list of branch names.
next_token(Option<String>)
:An enumeration token that returns the batch of the results.
- On failure, responds with
SdkError<ListBranchesError>
sourcepub fn list_pull_requests(&self) -> ListPullRequests
pub fn list_pull_requests(&self) -> ListPullRequests
Constructs a fluent builder for the ListPullRequests
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository for which you want to list pull requests.
author_arn(impl Into<String>)
/set_author_arn(Option<String>)
:Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.
pull_request_status(PullRequestStatusEnum)
/set_pull_request_status(Option<PullRequestStatusEnum>)
:Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results.
- On success, responds with
ListPullRequestsOutput
with field(s):pull_request_ids(Option<Vec<String>>)
:The system-generated IDs of the pull requests.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the next results of the operation.
- On failure, responds with
SdkError<ListPullRequestsError>
sourcepub fn list_repositories(&self) -> ListRepositories
pub fn list_repositories(&self) -> ListRepositories
Constructs a fluent builder for the ListRepositories
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is retrieved.
sort_by(SortByEnum)
/set_sort_by(Option<SortByEnum>)
:The criteria used to sort the results of a list repositories operation.
order(OrderEnum)
/set_order(Option<OrderEnum>)
:The order in which to sort the results of a list repositories operation.
- On success, responds with
ListRepositoriesOutput
with field(s):repositories(Option<Vec<RepositoryNameIdPair>>)
:Lists the repositories called by the list repositories operation.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is retrieved.
- On failure, responds with
SdkError<ListRepositoriesError>
sourcepub fn list_repositories_for_approval_rule_template(
&self
) -> ListRepositoriesForApprovalRuleTemplate
pub fn list_repositories_for_approval_rule_template(
&self
) -> ListRepositoriesForApprovalRuleTemplate
Constructs a fluent builder for the ListRepositoriesForApprovalRuleTemplate
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the approval rule template for which you want to list repositories that are associated with that template.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
max_results(i32)
/set_max_results(Option<i32>)
:A non-zero, non-negative integer used to limit the number of returned results.
- On success, responds with
ListRepositoriesForApprovalRuleTemplateOutput
with field(s):repository_names(Option<Vec<String>>)
:A list of repository names that are associated with the specified approval rule template.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the next results of the operation.
- On failure, responds with
SdkError<ListRepositoriesForApprovalRuleTemplateError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource for which you want to get information about tags, if any.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:A list of tag key and value pairs associated with the specified resource.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the next results of the operation.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn merge_branches_by_fast_forward(&self) -> MergeBranchesByFastForward
pub fn merge_branches_by_fast_forward(&self) -> MergeBranchesByFastForward
Constructs a fluent builder for the MergeBranchesByFastForward
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to merge two branches.
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
target_branch(impl Into<String>)
/set_target_branch(Option<String>)
:The branch where the merge is applied.
- On success, responds with
MergeBranchesByFastForwardOutput
with field(s):commit_id(Option<String>)
:The commit ID of the merge in the destination or target branch.
tree_id(Option<String>)
:The tree ID of the merge in the destination or target branch.
- On failure, responds with
SdkError<MergeBranchesByFastForwardError>
sourcepub fn merge_branches_by_squash(&self) -> MergeBranchesBySquash
pub fn merge_branches_by_squash(&self) -> MergeBranchesBySquash
Constructs a fluent builder for the MergeBranchesBySquash
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to merge two branches.
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
target_branch(impl Into<String>)
/set_target_branch(Option<String>)
:The branch where the merge is applied.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
author_name(impl Into<String>)
/set_author_name(Option<String>)
:The name of the author who created the commit. This information is used as both the author and committer for the commit.
email(impl Into<String>)
/set_email(Option<String>)
:The email address of the person merging the branches. This information is used in the commit information for the merge.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message for the merge.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file is created for empty folders. The default is false.
conflict_resolution(ConflictResolution)
/set_conflict_resolution(Option<ConflictResolution>)
:If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- On success, responds with
MergeBranchesBySquashOutput
with field(s):commit_id(Option<String>)
:The commit ID of the merge in the destination or target branch.
tree_id(Option<String>)
:The tree ID of the merge in the destination or target branch.
- On failure, responds with
SdkError<MergeBranchesBySquashError>
sourcepub fn merge_branches_by_three_way(&self) -> MergeBranchesByThreeWay
pub fn merge_branches_by_three_way(&self) -> MergeBranchesByThreeWay
Constructs a fluent builder for the MergeBranchesByThreeWay
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to merge two branches.
source_commit_specifier(impl Into<String>)
/set_source_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
destination_commit_specifier(impl Into<String>)
/set_destination_commit_specifier(Option<String>)
:The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
target_branch(impl Into<String>)
/set_target_branch(Option<String>)
:The branch where the merge is applied.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
author_name(impl Into<String>)
/set_author_name(Option<String>)
:The name of the author who created the commit. This information is used as both the author and committer for the commit.
email(impl Into<String>)
/set_email(Option<String>)
:The email address of the person merging the branches. This information is used in the commit information for the merge.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message to include in the commit information for the merge.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.
conflict_resolution(ConflictResolution)
/set_conflict_resolution(Option<ConflictResolution>)
:If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- On success, responds with
MergeBranchesByThreeWayOutput
with field(s):commit_id(Option<String>)
:The commit ID of the merge in the destination or target branch.
tree_id(Option<String>)
:The tree ID of the merge in the destination or target branch.
- On failure, responds with
SdkError<MergeBranchesByThreeWayError>
sourcepub fn merge_pull_request_by_fast_forward(
&self
) -> MergePullRequestByFastForward
pub fn merge_pull_request_by_fast_forward(
&self
) -> MergePullRequestByFastForward
Constructs a fluent builder for the MergePullRequestByFastForward
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where the pull request was created.
source_commit_id(impl Into<String>)
/set_source_commit_id(Option<String>)
:The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.
- On success, responds with
MergePullRequestByFastForwardOutput
with field(s):pull_request(Option<PullRequest>)
:Information about the specified pull request, including the merge.
- On failure, responds with
SdkError<MergePullRequestByFastForwardError>
sourcepub fn merge_pull_request_by_squash(&self) -> MergePullRequestBySquash
pub fn merge_pull_request_by_squash(&self) -> MergePullRequestBySquash
Constructs a fluent builder for the MergePullRequestBySquash
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where the pull request was created.
source_commit_id(impl Into<String>)
/set_source_commit_id(Option<String>)
:The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message to include in the commit information for the merge.
author_name(impl Into<String>)
/set_author_name(Option<String>)
:The name of the author who created the commit. This information is used as both the author and committer for the commit.
email(impl Into<String>)
/set_email(Option<String>)
:The email address of the person merging the branches. This information is used in the commit information for the merge.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.
conflict_resolution(ConflictResolution)
/set_conflict_resolution(Option<ConflictResolution>)
:If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- On success, responds with
MergePullRequestBySquashOutput
with field(s):pull_request(Option<PullRequest>)
:Returns information about a pull request.
- On failure, responds with
SdkError<MergePullRequestBySquashError>
sourcepub fn merge_pull_request_by_three_way(&self) -> MergePullRequestByThreeWay
pub fn merge_pull_request_by_three_way(&self) -> MergePullRequestByThreeWay
Constructs a fluent builder for the MergePullRequestByThreeWay
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where the pull request was created.
source_commit_id(impl Into<String>)
/set_source_commit_id(Option<String>)
:The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.
conflict_detail_level(ConflictDetailLevelTypeEnum)
/set_conflict_detail_level(Option<ConflictDetailLevelTypeEnum>)
:The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
conflict_resolution_strategy(ConflictResolutionStrategyTypeEnum)
/set_conflict_resolution_strategy(Option<ConflictResolutionStrategyTypeEnum>)
:Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:The commit message to include in the commit information for the merge.
author_name(impl Into<String>)
/set_author_name(Option<String>)
:The name of the author who created the commit. This information is used as both the author and committer for the commit.
email(impl Into<String>)
/set_email(Option<String>)
:The email address of the person merging the branches. This information is used in the commit information for the merge.
keep_empty_folders(bool)
/set_keep_empty_folders(bool)
:If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.
conflict_resolution(ConflictResolution)
/set_conflict_resolution(Option<ConflictResolution>)
:If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- On success, responds with
MergePullRequestByThreeWayOutput
with field(s):pull_request(Option<PullRequest>)
:Returns information about a pull request.
- On failure, responds with
SdkError<MergePullRequestByThreeWayError>
sourcepub fn override_pull_request_approval_rules(
&self
) -> OverridePullRequestApprovalRules
pub fn override_pull_request_approval_rules(
&self
) -> OverridePullRequestApprovalRules
Constructs a fluent builder for the OverridePullRequestApprovalRules
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use
GetPullRequest
.revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.
override_status(OverrideStatus)
/set_override_status(Option<OverrideStatus>)
:Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.
- On success, responds with
OverridePullRequestApprovalRulesOutput
- On failure, responds with
SdkError<OverridePullRequestApprovalRulesError>
sourcepub fn post_comment_for_compared_commit(&self) -> PostCommentForComparedCommit
pub fn post_comment_for_compared_commit(&self) -> PostCommentForComparedCommit
Constructs a fluent builder for the PostCommentForComparedCommit
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to post a comment on the comparison between commits.
before_commit_id(impl Into<String>)
/set_before_commit_id(Option<String>)
:To establish the directionality of the comparison, the full commit ID of the before commit. Required for commenting on any commit unless that commit is the initial commit.
after_commit_id(impl Into<String>)
/set_after_commit_id(Option<String>)
:To establish the directionality of the comparison, the full commit ID of the after commit.
location(Location)
/set_location(Option<Location>)
:The location of the comparison where you want to comment.
content(impl Into<String>)
/set_content(Option<String>)
:The content of the comment you want to make.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
- On success, responds with
PostCommentForComparedCommitOutput
with field(s):repository_name(Option<String>)
:The name of the repository where you posted a comment on the comparison between commits.
before_commit_id(Option<String>)
:In the directionality you established, the full commit ID of the before commit.
after_commit_id(Option<String>)
:In the directionality you established, the full commit ID of the after commit.
before_blob_id(Option<String>)
:In the directionality you established, the blob ID of the before blob.
after_blob_id(Option<String>)
:In the directionality you established, the blob ID of the after blob.
location(Option<Location>)
:The location of the comment in the comparison between the two commits.
comment(Option<Comment>)
:The content of the comment you posted.
- On failure, responds with
SdkError<PostCommentForComparedCommitError>
sourcepub fn post_comment_for_pull_request(&self) -> PostCommentForPullRequest
pub fn post_comment_for_pull_request(&self) -> PostCommentForPullRequest
Constructs a fluent builder for the PostCommentForPullRequest
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to post a comment on a pull request.
before_commit_id(impl Into<String>)
/set_before_commit_id(Option<String>)
:The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
after_commit_id(impl Into<String>)
/set_after_commit_id(Option<String>)
:The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
location(Location)
/set_location(Option<Location>)
:The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
content(impl Into<String>)
/set_content(Option<String>)
:The content of your comment on the change.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
- On success, responds with
PostCommentForPullRequestOutput
with field(s):repository_name(Option<String>)
:The name of the repository where you posted a comment on a pull request.
pull_request_id(Option<String>)
:The system-generated ID of the pull request.
before_commit_id(Option<String>)
:The full commit ID of the commit in the source branch used to create the pull request, or in the case of an updated pull request, the full commit ID of the commit used to update the pull request.
after_commit_id(Option<String>)
:The full commit ID of the commit in the destination branch where the pull request is merged.
before_blob_id(Option<String>)
:In the directionality of the pull request, the blob ID of the before blob.
after_blob_id(Option<String>)
:In the directionality of the pull request, the blob ID of the after blob.
location(Option<Location>)
:The location of the change where you posted your comment.
comment(Option<Comment>)
:The content of the comment you posted.
- On failure, responds with
SdkError<PostCommentForPullRequestError>
sourcepub fn post_comment_reply(&self) -> PostCommentReply
pub fn post_comment_reply(&self) -> PostCommentReply
Constructs a fluent builder for the PostCommentReply
operation.
- The fluent builder is configurable:
in_reply_to(impl Into<String>)
/set_in_reply_to(Option<String>)
:The system-generated ID of the comment to which you want to reply. To get this ID, use
GetCommentsForComparedCommit
orGetCommentsForPullRequest
.client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
content(impl Into<String>)
/set_content(Option<String>)
:The contents of your reply to a comment.
- On success, responds with
PostCommentReplyOutput
with field(s):comment(Option<Comment>)
:Information about the reply to a comment.
- On failure, responds with
SdkError<PostCommentReplyError>
sourcepub fn put_comment_reaction(&self) -> PutCommentReaction
pub fn put_comment_reaction(&self) -> PutCommentReaction
Constructs a fluent builder for the PutCommentReaction
operation.
- The fluent builder is configurable:
comment_id(impl Into<String>)
/set_comment_id(Option<String>)
:The ID of the comment to which you want to add or update a reaction.
reaction_value(impl Into<String>)
/set_reaction_value(Option<String>)
:The emoji reaction you want to add or update. To remove a reaction, provide a value of blank or null. You can also provide the value of none. For information about emoji reaction values supported in AWS CodeCommit, see the AWS CodeCommit User Guide.
- On success, responds with
PutCommentReactionOutput
- On failure, responds with
SdkError<PutCommentReactionError>
sourcepub fn put_file(&self) -> PutFile
pub fn put_file(&self) -> PutFile
Constructs a fluent builder for the PutFile
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to add or update the file.
branch_name(impl Into<String>)
/set_branch_name(Option<String>)
:The name of the branch where you want to add or update the file. If this is an empty repository, this branch is created.
file_content(Blob)
/set_file_content(Option<Blob>)
:The content of the file, in binary object format.
file_path(impl Into<String>)
/set_file_path(Option<String>)
:The name of the file you want to add or update, including the relative path to the file in the repository.
If the path does not currently exist in the repository, the path is created as part of adding the file.
file_mode(FileModeTypeEnum)
/set_file_mode(Option<FileModeTypeEnum>)
:The file mode permissions of the blob. Valid file mode permissions are listed here.
parent_commit_id(impl Into<String>)
/set_parent_commit_id(Option<String>)
:The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
commit_message(impl Into<String>)
/set_commit_message(Option<String>)
:A message about why this file was added or updated. Although it is optional, a message makes the commit history for your repository more useful.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the person adding or updating the file. Although it is optional, a name makes the commit history for your repository more useful.
email(impl Into<String>)
/set_email(Option<String>)
:An email address for the person adding or updating the file.
- On success, responds with
PutFileOutput
with field(s):commit_id(Option<String>)
:The full SHA ID of the commit that contains this file change.
blob_id(Option<String>)
:The ID of the blob, which is its SHA-1 pointer.
tree_id(Option<String>)
:The full SHA-1 pointer of the tree information for the commit that contains this file change.
- On failure, responds with
SdkError<PutFileError>
sourcepub fn put_repository_triggers(&self) -> PutRepositoryTriggers
pub fn put_repository_triggers(&self) -> PutRepositoryTriggers
Constructs a fluent builder for the PutRepositoryTriggers
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository where you want to create or update the trigger.
triggers(Vec<RepositoryTrigger>)
/set_triggers(Option<Vec<RepositoryTrigger>>)
:The JSON block of configuration information for each trigger.
- On success, responds with
PutRepositoryTriggersOutput
with field(s):configuration_id(Option<String>)
:The system-generated unique ID for the create or update operation.
- On failure, responds with
SdkError<PutRepositoryTriggersError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to which you want to add or update tags.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The key-value pair to use when tagging this repository.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn test_repository_triggers(&self) -> TestRepositoryTriggers
pub fn test_repository_triggers(&self) -> TestRepositoryTriggers
Constructs a fluent builder for the TestRepositoryTriggers
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository in which to test the triggers.
triggers(Vec<RepositoryTrigger>)
/set_triggers(Option<Vec<RepositoryTrigger>>)
:The list of triggers to test.
- On success, responds with
TestRepositoryTriggersOutput
with field(s):successful_executions(Option<Vec<String>>)
:The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.
failed_executions(Option<Vec<RepositoryTriggerExecutionFailure>>)
:The list of triggers that were not tested. This list provides the names of the triggers that could not be tested, separated by commas.
- On failure, responds with
SdkError<TestRepositoryTriggersError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to which you want to remove tags.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The tag key for each tag that you want to remove from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_approval_rule_template_content(
&self
) -> UpdateApprovalRuleTemplateContent
pub fn update_approval_rule_template_content(
&self
) -> UpdateApprovalRuleTemplateContent
Constructs a fluent builder for the UpdateApprovalRuleTemplateContent
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the approval rule template where you want to update the content of the rule.
new_rule_content(impl Into<String>)
/set_new_rule_content(Option<String>)
:The content that replaces the existing content of the rule. Content statements must be complete. You cannot provide only the changes.
existing_rule_content_sha256(impl Into<String>)
/set_existing_rule_content_sha256(Option<String>)
:The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using
GetPullRequest
.
- On success, responds with
UpdateApprovalRuleTemplateContentOutput
with field(s):approval_rule_template(Option<ApprovalRuleTemplate>)
:Returns information about an approval rule template.
- On failure, responds with
SdkError<UpdateApprovalRuleTemplateContentError>
sourcepub fn update_approval_rule_template_description(
&self
) -> UpdateApprovalRuleTemplateDescription
pub fn update_approval_rule_template_description(
&self
) -> UpdateApprovalRuleTemplateDescription
Constructs a fluent builder for the UpdateApprovalRuleTemplateDescription
operation.
- The fluent builder is configurable:
approval_rule_template_name(impl Into<String>)
/set_approval_rule_template_name(Option<String>)
:The name of the template for which you want to update the description.
approval_rule_template_description(impl Into<String>)
/set_approval_rule_template_description(Option<String>)
:The updated description of the approval rule template.
- On success, responds with
UpdateApprovalRuleTemplateDescriptionOutput
with field(s):approval_rule_template(Option<ApprovalRuleTemplate>)
:The structure and content of the updated approval rule template.
- On failure, responds with
SdkError<UpdateApprovalRuleTemplateDescriptionError>
sourcepub fn update_approval_rule_template_name(
&self
) -> UpdateApprovalRuleTemplateName
pub fn update_approval_rule_template_name(
&self
) -> UpdateApprovalRuleTemplateName
Constructs a fluent builder for the UpdateApprovalRuleTemplateName
operation.
- The fluent builder is configurable:
old_approval_rule_template_name(impl Into<String>)
/set_old_approval_rule_template_name(Option<String>)
:The current name of the approval rule template.
new_approval_rule_template_name(impl Into<String>)
/set_new_approval_rule_template_name(Option<String>)
:The new name you want to apply to the approval rule template.
- On success, responds with
UpdateApprovalRuleTemplateNameOutput
with field(s):approval_rule_template(Option<ApprovalRuleTemplate>)
:The structure and content of the updated approval rule template.
- On failure, responds with
SdkError<UpdateApprovalRuleTemplateNameError>
sourcepub fn update_comment(&self) -> UpdateComment
pub fn update_comment(&self) -> UpdateComment
Constructs a fluent builder for the UpdateComment
operation.
- The fluent builder is configurable:
comment_id(impl Into<String>)
/set_comment_id(Option<String>)
:The system-generated ID of the comment you want to update. To get this ID, use
GetCommentsForComparedCommit
orGetCommentsForPullRequest
.content(impl Into<String>)
/set_content(Option<String>)
:The updated content to replace the existing content of the comment.
- On success, responds with
UpdateCommentOutput
with field(s):comment(Option<Comment>)
:Information about the updated comment.
- On failure, responds with
SdkError<UpdateCommentError>
sourcepub fn update_default_branch(&self) -> UpdateDefaultBranch
pub fn update_default_branch(&self) -> UpdateDefaultBranch
Constructs a fluent builder for the UpdateDefaultBranch
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to set or change the default branch for.
default_branch_name(impl Into<String>)
/set_default_branch_name(Option<String>)
:The name of the branch to set as the default.
- On success, responds with
UpdateDefaultBranchOutput
- On failure, responds with
SdkError<UpdateDefaultBranchError>
sourcepub fn update_pull_request_approval_rule_content(
&self
) -> UpdatePullRequestApprovalRuleContent
pub fn update_pull_request_approval_rule_content(
&self
) -> UpdatePullRequestApprovalRuleContent
Constructs a fluent builder for the UpdatePullRequestApprovalRuleContent
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request.
approval_rule_name(impl Into<String>)
/set_approval_rule_name(Option<String>)
:The name of the approval rule you want to update.
existing_rule_content_sha256(impl Into<String>)
/set_existing_rule_content_sha256(Option<String>)
:The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using
GetPullRequest
.new_rule_content(impl Into<String>)
/set_new_rule_content(Option<String>)
:The updated content for the approval rule.
When you update the content of the approval rule, you can specify approvers in an approval pool in one of two ways:
-
CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following are counted as approvals coming from that user:
-
An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)
-
A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)
This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).
-
-
Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.
For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.
-
- On success, responds with
UpdatePullRequestApprovalRuleContentOutput
with field(s):approval_rule(Option<ApprovalRule>)
:Information about the updated approval rule.
- On failure, responds with
SdkError<UpdatePullRequestApprovalRuleContentError>
sourcepub fn update_pull_request_approval_state(
&self
) -> UpdatePullRequestApprovalState
pub fn update_pull_request_approval_state(
&self
) -> UpdatePullRequestApprovalState
Constructs a fluent builder for the UpdatePullRequestApprovalState
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:The system-generated ID of the revision.
approval_state(ApprovalState)
/set_approval_state(Option<ApprovalState>)
:The approval state to associate with the user on the pull request.
- On success, responds with
UpdatePullRequestApprovalStateOutput
- On failure, responds with
SdkError<UpdatePullRequestApprovalStateError>
sourcepub fn update_pull_request_description(&self) -> UpdatePullRequestDescription
pub fn update_pull_request_description(&self) -> UpdatePullRequestDescription
Constructs a fluent builder for the UpdatePullRequestDescription
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.description(impl Into<String>)
/set_description(Option<String>)
:The updated content of the description for the pull request. This content replaces the existing description.
- On success, responds with
UpdatePullRequestDescriptionOutput
with field(s):pull_request(Option<PullRequest>)
:Information about the updated pull request.
- On failure, responds with
SdkError<UpdatePullRequestDescriptionError>
sourcepub fn update_pull_request_status(&self) -> UpdatePullRequestStatus
pub fn update_pull_request_status(&self) -> UpdatePullRequestStatus
Constructs a fluent builder for the UpdatePullRequestStatus
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.pull_request_status(PullRequestStatusEnum)
/set_pull_request_status(Option<PullRequestStatusEnum>)
:The status of the pull request. The only valid operations are to update the status from
OPEN
toOPEN
,OPEN
toCLOSED
or fromCLOSED
toCLOSED
.
- On success, responds with
UpdatePullRequestStatusOutput
with field(s):pull_request(Option<PullRequest>)
:Information about the pull request.
- On failure, responds with
SdkError<UpdatePullRequestStatusError>
sourcepub fn update_pull_request_title(&self) -> UpdatePullRequestTitle
pub fn update_pull_request_title(&self) -> UpdatePullRequestTitle
Constructs a fluent builder for the UpdatePullRequestTitle
operation.
- The fluent builder is configurable:
pull_request_id(impl Into<String>)
/set_pull_request_id(Option<String>)
:The system-generated ID of the pull request. To get this ID, use
ListPullRequests
.title(impl Into<String>)
/set_title(Option<String>)
:The updated title of the pull request. This replaces the existing title.
- On success, responds with
UpdatePullRequestTitleOutput
with field(s):pull_request(Option<PullRequest>)
:Information about the updated pull request.
- On failure, responds with
SdkError<UpdatePullRequestTitleError>
sourcepub fn update_repository_description(&self) -> UpdateRepositoryDescription
pub fn update_repository_description(&self) -> UpdateRepositoryDescription
Constructs a fluent builder for the UpdateRepositoryDescription
operation.
- The fluent builder is configurable:
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:The name of the repository to set or change the comment or description for.
repository_description(impl Into<String>)
/set_repository_description(Option<String>)
:The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters.
- On success, responds with
UpdateRepositoryDescriptionOutput
- On failure, responds with
SdkError<UpdateRepositoryDescriptionError>
sourcepub fn update_repository_name(&self) -> UpdateRepositoryName
pub fn update_repository_name(&self) -> UpdateRepositoryName
Constructs a fluent builder for the UpdateRepositoryName
operation.
- The fluent builder is configurable:
old_name(impl Into<String>)
/set_old_name(Option<String>)
:The current name of the repository.
new_name(impl Into<String>)
/set_new_name(Option<String>)
:The new name for the repository.
- On success, responds with
UpdateRepositoryNameOutput
- On failure, responds with
SdkError<UpdateRepositoryNameError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more