#[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.impl StructuralPartialEq for BatchGetCommitsOutput
Auto Trait Implementations§
impl Freeze for BatchGetCommitsOutput
impl RefUnwindSafe for BatchGetCommitsOutput
impl Send for BatchGetCommitsOutput
impl Sync for BatchGetCommitsOutput
impl Unpin for BatchGetCommitsOutput
impl UnwindSafe for BatchGetCommitsOutput
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