pub struct PendingComment {
pub path: String,
pub previous_path: Option<String>,
pub line: u32,
pub side: DiffSide,
pub start_line: Option<u32>,
pub other_line: Option<u32>,
pub body: String,
}Expand description
A comment on code that is held locally until the review is submitted.
Fields§
§path: StringThe path at the head.
previous_path: Option<String>The path at the merge base, when the file was renamed (GitLab
wants both; defaults to path).
line: u32The (last) line commented, on side.
side: DiffSide§start_line: Option<u32>The first line of a range, on side; None for one line.
other_line: Option<u32>For an unchanged context line, its number on the other side. GitLab needs both numbers to place such a comment; GitHub ignores it. The diff view knows both.
body: StringTrait Implementations§
Source§impl Clone for PendingComment
impl Clone for PendingComment
Source§impl Debug for PendingComment
impl Debug for PendingComment
Source§impl<'de> Deserialize<'de> for PendingComment
impl<'de> Deserialize<'de> for PendingComment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PendingComment
Source§impl PartialEq for PendingComment
impl PartialEq for PendingComment
Source§impl Serialize for PendingComment
impl Serialize for PendingComment
impl StructuralPartialEq for PendingComment
Auto Trait Implementations§
impl Forget for PendingComment
impl Freeze for PendingComment
impl Move for PendingComment
impl RefUnwindSafe for PendingComment
impl Send for PendingComment
impl Sync for PendingComment
impl Unpin for PendingComment
impl UnsafeUnpin for PendingComment
impl UnwindSafe for PendingComment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.