pub struct ReviewThread {
pub id: String,
pub path: String,
pub line: Option<u32>,
pub original_line: Option<u32>,
pub side: DiffSide,
pub start_line: Option<u32>,
pub resolved: bool,
pub outdated: bool,
pub resolvable: bool,
pub comments: Vec<ReviewComment>,
}Expand description
A conversation attached to a place in the code.
Fields§
§id: StringWhat reply_to_thread / resolve_thread take: GitHub’s GraphQL
node id, GitLab’s discussion id. Opaque.
path: StringThe path at the head (at the merge base for a removed file).
line: Option<u32>The line, on side, the thread sits on now; None once it is
outdated (the code it was written against changed).
original_line: Option<u32>Where it was when written, kept for outdated threads.
side: DiffSide§start_line: Option<u32>The first line of a multi-line comment, on side.
resolved: bool§outdated: bool§resolvable: boolWhether it can be resolved at all (a GitLab thread may not be).
comments: Vec<ReviewComment>Oldest first; the first is the thread’s opening comment.
Implementations§
Trait Implementations§
Source§impl Clone for ReviewThread
impl Clone for ReviewThread
Source§impl Debug for ReviewThread
impl Debug for ReviewThread
Source§impl<'de> Deserialize<'de> for ReviewThread
impl<'de> Deserialize<'de> for ReviewThread
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 ReviewThread
Source§impl PartialEq for ReviewThread
impl PartialEq for ReviewThread
Source§impl Serialize for ReviewThread
impl Serialize for ReviewThread
impl StructuralPartialEq for ReviewThread
Auto Trait Implementations§
impl Forget for ReviewThread
impl Freeze for ReviewThread
impl Move for ReviewThread
impl RefUnwindSafe for ReviewThread
impl Send for ReviewThreadwhere
RawVecInner: Send,
impl Sync for ReviewThreadwhere
RawVecInner: Sync,
impl Unpin for ReviewThread
impl UnsafeUnpin for ReviewThreadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReviewComment>: UnsafeUnpin,
impl UnwindSafe for ReviewThreadwhere
RawVecInner: UnwindSafe,
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,
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§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.