Struct aws_sdk_codecommit::types::Commit
source · #[non_exhaustive]pub struct Commit {
pub commit_id: Option<String>,
pub tree_id: Option<String>,
pub parents: Option<Vec<String>>,
pub message: Option<String>,
pub author: Option<UserInfo>,
pub committer: Option<UserInfo>,
pub additional_data: Option<String>,
}
Expand description
Returns information about a specific commit.
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 SHA ID of the specified commit.
tree_id: Option<String>
Tree information for the specified commit.
parents: Option<Vec<String>>
A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
message: Option<String>
The commit message associated with the specified commit.
Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
committer: Option<UserInfo>
Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
additional_data: Option<String>
Any other data associated with the specified commit.
Implementations§
source§impl Commit
impl Commit
sourcepub fn parents(&self) -> &[String]
pub fn parents(&self) -> &[String]
A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parents.is_none()
.
Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
sourcepub fn committer(&self) -> Option<&UserInfo>
pub fn committer(&self) -> Option<&UserInfo>
Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
sourcepub fn additional_data(&self) -> Option<&str>
pub fn additional_data(&self) -> Option<&str>
Any other data associated with the specified commit.
Trait Implementations§
source§impl PartialEq for Commit
impl PartialEq for Commit
impl StructuralPartialEq for Commit
Auto Trait Implementations§
impl Freeze for Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnwindSafe for Commit
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