#[non_exhaustive]pub struct CommentsForComparedCommit {
pub repository_name: Option<String>,
pub before_commit_id: Option<String>,
pub after_commit_id: Option<String>,
pub before_blob_id: Option<String>,
pub after_blob_id: Option<String>,
pub location: Option<Location>,
pub comments: Option<Vec<Comment>>,
}
Expand description
Returns information about comments on the comparison between two commits.
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.repository_name: Option<String>
The name of the repository that contains the compared commits.
before_commit_id: Option<String>
The full commit ID of the commit used to establish the before of the comparison.
after_commit_id: Option<String>
The full commit ID of the commit used to establish the after of the comparison.
before_blob_id: Option<String>
The full blob ID of the commit used to establish the before of the comparison.
after_blob_id: Option<String>
The full blob ID of the commit used to establish the after of the comparison.
location: Option<Location>
Location information about the comment on the comparison, including the file name, line number, and whether the version of the file where the comment was made is BEFORE or AFTER.
comments: Option<Vec<Comment>>
An array of comment objects. Each comment object contains information about a comment on the comparison between commits.
Implementations§
source§impl CommentsForComparedCommit
impl CommentsForComparedCommit
sourcepub fn repository_name(&self) -> Option<&str>
pub fn repository_name(&self) -> Option<&str>
The name of the repository that contains the compared commits.
sourcepub fn before_commit_id(&self) -> Option<&str>
pub fn before_commit_id(&self) -> Option<&str>
The full commit ID of the commit used to establish the before of the comparison.
sourcepub fn after_commit_id(&self) -> Option<&str>
pub fn after_commit_id(&self) -> Option<&str>
The full commit ID of the commit used to establish the after of the comparison.
sourcepub fn before_blob_id(&self) -> Option<&str>
pub fn before_blob_id(&self) -> Option<&str>
The full blob ID of the commit used to establish the before of the comparison.
sourcepub fn after_blob_id(&self) -> Option<&str>
pub fn after_blob_id(&self) -> Option<&str>
The full blob ID of the commit used to establish the after of the comparison.
source§impl CommentsForComparedCommit
impl CommentsForComparedCommit
sourcepub fn builder() -> CommentsForComparedCommitBuilder
pub fn builder() -> CommentsForComparedCommitBuilder
Creates a new builder-style object to manufacture CommentsForComparedCommit
.
Trait Implementations§
source§impl Clone for CommentsForComparedCommit
impl Clone for CommentsForComparedCommit
source§fn clone(&self) -> CommentsForComparedCommit
fn clone(&self) -> CommentsForComparedCommit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommentsForComparedCommit
impl Debug for CommentsForComparedCommit
source§impl PartialEq for CommentsForComparedCommit
impl PartialEq for CommentsForComparedCommit
source§fn eq(&self, other: &CommentsForComparedCommit) -> bool
fn eq(&self, other: &CommentsForComparedCommit) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommentsForComparedCommit
Auto Trait Implementations§
impl Freeze for CommentsForComparedCommit
impl RefUnwindSafe for CommentsForComparedCommit
impl Send for CommentsForComparedCommit
impl Sync for CommentsForComparedCommit
impl Unpin for CommentsForComparedCommit
impl UnwindSafe for CommentsForComparedCommit
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