pub struct ReviewComment {
pub line_start: Option<u32>,
pub line_end: u32,
pub comment: String,
pub path: String,
}Expand description
A struct to describe a single comment in a Pull Request review.
Fields§
§line_start: Option<u32>The file’s line number in the diff that begins the the focus of the comment’s concerns.
line_end: u32The file’s line number in the diff that ends the focus of the comment’s concerns.
comment: StringThe actual comment.
This text can include a code block that demonstrates a suggested change(s).
Typically, the comment should not begin with the ReviewOptions::marker value.
That is managed by the git-bot-feedback library.
path: StringThe file that this comment pertains to.
Trait Implementations§
Source§impl Clone for ReviewComment
impl Clone for ReviewComment
Source§fn clone(&self) -> ReviewComment
fn clone(&self) -> ReviewComment
Returns a duplicate 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 ReviewComment
impl Debug for ReviewComment
Source§impl Hash for ReviewComment
impl Hash for ReviewComment
Source§impl PartialEq for ReviewComment
impl PartialEq for ReviewComment
impl Eq for ReviewComment
impl StructuralPartialEq for ReviewComment
Auto Trait Implementations§
impl Freeze for ReviewComment
impl RefUnwindSafe for ReviewComment
impl Send for ReviewComment
impl Sync for ReviewComment
impl Unpin for ReviewComment
impl UnsafeUnpin for ReviewComment
impl UnwindSafe for ReviewComment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.