Struct aws_sdk_codecommit::model::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
sourceimpl Commit
impl Commit
sourcepub fn parents(&self) -> Option<&[String]>
pub fn parents(&self) -> Option<&[String]>
A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
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
impl StructuralPartialEq for Commit
Auto Trait Implementations
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnwindSafe for Commit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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