#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[Commit]>
pub fn commits(&self) -> Option<&[Commit]>
An array of commit data type objects, each of which contains information about a specified commit.
sourcepub fn errors(&self) -> Option<&[BatchGetCommitsError]>
pub fn errors(&self) -> Option<&[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.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BatchGetCommitsOutput
impl Debug for BatchGetCommitsOutput
source§impl PartialEq<BatchGetCommitsOutput> for BatchGetCommitsOutput
impl PartialEq<BatchGetCommitsOutput> for BatchGetCommitsOutput
source§fn eq(&self, other: &BatchGetCommitsOutput) -> bool
fn eq(&self, other: &BatchGetCommitsOutput) -> bool
This method tests for
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>
Returns the request ID, or
None if the service could not be reached.impl StructuralPartialEq for BatchGetCommitsOutput
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more