pub struct NewComment {
pub finding: String,
pub path: String,
pub old_path: Option<String>,
pub side: String,
pub line: u32,
pub start_line: Option<u32>,
pub other_line: Option<u32>,
pub span: Option<LineSpan>,
pub body: String,
}Expand description
A new review comment to publish: a finding that is not a reply.
Fields§
§finding: String§path: StringThe path in the request: the new path.
old_path: Option<String>The old path when the file was renamed. GitLab wants both; GitHub
wants only path.
side: String"old" | "new".
line: u32The last (or only) line.
start_line: Option<u32>The first line of a multi-line comment; None for one line.
other_line: Option<u32>The same line’s number on the other side, when the line is unchanged and so exists on both. GitLab positions an unchanged line by both numbers; a changed line has one.
span: Option<LineSpan>The two ends of a multi-line comment, each as its (old, new) pair,
which GitLab needs to build a line_code. None for one line.
body: StringTrait Implementations§
Source§impl Clone for NewComment
impl Clone for NewComment
Source§fn clone(&self) -> NewComment
fn clone(&self) -> NewComment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NewComment
impl Debug for NewComment
impl Eq for NewComment
Source§impl PartialEq for NewComment
impl PartialEq for NewComment
impl StructuralPartialEq for NewComment
Auto Trait Implementations§
impl Freeze for NewComment
impl RefUnwindSafe for NewComment
impl Send for NewComment
impl Sync for NewComment
impl Unpin for NewComment
impl UnsafeUnpin for NewComment
impl UnwindSafe for NewComment
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.