#[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.impl StructuralPartialEq for CreateCommitOutput
Auto Trait Implementations§
impl Freeze for CreateCommitOutput
impl RefUnwindSafe for CreateCommitOutput
impl Send for CreateCommitOutput
impl Sync for CreateCommitOutput
impl Unpin for CreateCommitOutput
impl UnwindSafe for CreateCommitOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more