pub struct ReviewLine {
pub kind: ReviewLineKind,
pub old_line: Option<u32>,
pub new_line: Option<u32>,
pub content: String,
}Expand description
A line in a unified diff hunk.
Fields§
§kind: ReviewLineKindLine kind.
old_line: Option<u32>Old file line number, when present.
new_line: Option<u32>New file line number, when present.
content: StringLine content without the leading unified diff marker.
Trait Implementations§
Source§impl Clone for ReviewLine
impl Clone for ReviewLine
Source§impl Debug for ReviewLine
impl Debug for ReviewLine
Source§impl<'de> Deserialize<'de> for ReviewLine
impl<'de> Deserialize<'de> for ReviewLine
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 ReviewLine
Source§impl PartialEq for ReviewLine
impl PartialEq for ReviewLine
Source§impl Serialize for ReviewLine
impl Serialize for ReviewLine
impl StructuralPartialEq for ReviewLine
Auto Trait Implementations§
impl Freeze for ReviewLine
impl RefUnwindSafe for ReviewLine
impl Send for ReviewLine
impl Sync for ReviewLine
impl Unpin for ReviewLine
impl UnsafeUnpin for ReviewLine
impl UnwindSafe for ReviewLine
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