#[non_exhaustive]pub struct CreateCommitInput {
pub repository_name: Option<String>,
pub branch_name: Option<String>,
pub parent_commit_id: Option<String>,
pub author_name: Option<String>,
pub email: Option<String>,
pub commit_message: Option<String>,
pub keep_empty_folders: Option<bool>,
pub put_files: Option<Vec<PutFileEntry>>,
pub delete_files: Option<Vec<DeleteFileEntry>>,
pub set_file_modes: Option<Vec<SetFileModeEntry>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.repository_name: Option<String>
The name of the repository where you create the commit.
branch_name: Option<String>
The name of the branch where you create the commit.
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.
The name of the author who created the commit. This information is used as both the author and committer for the commit.
email: Option<String>
The email address of the person who created the commit.
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: Option<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: Option<Vec<PutFileEntry>>
The files to add or update in this commit.
delete_files: Option<Vec<DeleteFileEntry>>
The files to delete in this commit. These files still exist in earlier commits.
set_file_modes: Option<Vec<SetFileModeEntry>>
The file modes to update for files in this commit.
Implementations§
source§impl CreateCommitInput
impl CreateCommitInput
sourcepub fn repository_name(&self) -> Option<&str>
pub fn repository_name(&self) -> Option<&str>
The name of the repository where you create the commit.
sourcepub fn branch_name(&self) -> Option<&str>
pub fn branch_name(&self) -> Option<&str>
The name of the branch where you create the commit.
sourcepub fn parent_commit_id(&self) -> Option<&str>
pub fn parent_commit_id(&self) -> Option<&str>
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
The name of the author who created the commit. This information is used as both the author and committer for the commit.
sourcepub fn commit_message(&self) -> Option<&str>
pub fn commit_message(&self) -> Option<&str>
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.
sourcepub fn keep_empty_folders(&self) -> Option<bool>
pub fn keep_empty_folders(&self) -> Option<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.
sourcepub fn put_files(&self) -> &[PutFileEntry]
pub fn put_files(&self) -> &[PutFileEntry]
The files to add or update in this commit.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .put_files.is_none()
.
sourcepub fn delete_files(&self) -> &[DeleteFileEntry]
pub fn delete_files(&self) -> &[DeleteFileEntry]
The files to delete in this commit. These files still exist in earlier commits.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .delete_files.is_none()
.
sourcepub fn set_file_modes(&self) -> &[SetFileModeEntry]
pub fn set_file_modes(&self) -> &[SetFileModeEntry]
The file modes to update for files in this commit.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .set_file_modes.is_none()
.
source§impl CreateCommitInput
impl CreateCommitInput
sourcepub fn builder() -> CreateCommitInputBuilder
pub fn builder() -> CreateCommitInputBuilder
Creates a new builder-style object to manufacture CreateCommitInput
.
Trait Implementations§
source§impl Clone for CreateCommitInput
impl Clone for CreateCommitInput
source§fn clone(&self) -> CreateCommitInput
fn clone(&self) -> CreateCommitInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCommitInput
impl Debug for CreateCommitInput
source§impl PartialEq for CreateCommitInput
impl PartialEq for CreateCommitInput
source§fn eq(&self, other: &CreateCommitInput) -> bool
fn eq(&self, other: &CreateCommitInput) -> bool
self
and other
values to be equal, and is used
by ==
.