#[non_exhaustive]pub struct BatchGetCommitsOutput {
pub commits: Option<Vec<Commit>>,
pub errors: Option<Vec<BatchGetCommitsError>>,
/* 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.commits: Option<Vec<Commit>>
An array of commit data type objects, each of which contains information about a specified commit.
errors: Option<Vec<BatchGetCommitsError>>
Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
Implementations§
source§impl BatchGetCommitsOutput
impl BatchGetCommitsOutput
sourcepub fn commits(&self) -> &[Commit]
pub fn commits(&self) -> &[Commit]
An array of commit data type objects, each of which contains information about a specified 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 .commits.is_none()
.
sourcepub fn errors(&self) -> &[BatchGetCommitsError]
pub fn errors(&self) -> &[BatchGetCommitsError]
Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .errors.is_none()
.
source§impl BatchGetCommitsOutput
impl BatchGetCommitsOutput
sourcepub fn builder() -> BatchGetCommitsOutputBuilder
pub fn builder() -> BatchGetCommitsOutputBuilder
Creates a new builder-style object to manufacture BatchGetCommitsOutput
.
Trait Implementations§
source§impl Clone for BatchGetCommitsOutput
impl Clone for BatchGetCommitsOutput
source§fn clone(&self) -> BatchGetCommitsOutput
fn clone(&self) -> BatchGetCommitsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchGetCommitsOutput
impl Debug for BatchGetCommitsOutput
source§impl PartialEq for BatchGetCommitsOutput
impl PartialEq for BatchGetCommitsOutput
source§fn eq(&self, other: &BatchGetCommitsOutput) -> bool
fn eq(&self, other: &BatchGetCommitsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for BatchGetCommitsOutput
impl RequestId for BatchGetCommitsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.