#[non_exhaustive]pub struct CreateCommitOutput {
pub commit_id: Option<String>,
pub tree_id: Option<String>,
pub files_added: Option<Vec<FileMetadata>>,
pub files_updated: Option<Vec<FileMetadata>>,
pub files_deleted: Option<Vec<FileMetadata>>,
/* private fields */
}
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.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.
Implementations§
source§impl CreateCommitOutput
impl CreateCommitOutput
sourcepub fn commit_id(&self) -> Option<&str>
pub fn commit_id(&self) -> Option<&str>
The full commit ID of the commit that contains your committed file changes.
sourcepub fn tree_id(&self) -> Option<&str>
pub fn tree_id(&self) -> Option<&str>
The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
sourcepub fn files_added(&self) -> &[FileMetadata]
pub fn files_added(&self) -> &[FileMetadata]
The files added as part of the committed file changes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .files_added.is_none()
.
sourcepub fn files_updated(&self) -> &[FileMetadata]
pub fn files_updated(&self) -> &[FileMetadata]
The files updated as part of the commited file changes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .files_updated.is_none()
.
sourcepub fn files_deleted(&self) -> &[FileMetadata]
pub fn files_deleted(&self) -> &[FileMetadata]
The files deleted as part of the committed file changes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .files_deleted.is_none()
.
source§impl CreateCommitOutput
impl CreateCommitOutput
sourcepub fn builder() -> CreateCommitOutputBuilder
pub fn builder() -> CreateCommitOutputBuilder
Creates a new builder-style object to manufacture CreateCommitOutput
.
Trait Implementations§
source§impl Clone for CreateCommitOutput
impl Clone for CreateCommitOutput
source§fn clone(&self) -> CreateCommitOutput
fn clone(&self) -> CreateCommitOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCommitOutput
impl Debug for CreateCommitOutput
source§impl PartialEq for CreateCommitOutput
impl PartialEq for CreateCommitOutput
source§fn eq(&self, other: &CreateCommitOutput) -> bool
fn eq(&self, other: &CreateCommitOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateCommitOutput
impl RequestId for CreateCommitOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.