pub struct CommentContext {
pub path: RepoPath,
pub side: DiffSide,
pub line_number: Option<usize>,
pub line_kind: PatchLineKind,
pub line_text: String,
}Expand description
The captured source context for a comment.
Fields§
§path: RepoPath§side: DiffSide§line_number: Option<usize>§line_kind: PatchLineKind§line_text: StringTrait Implementations§
Source§impl Clone for CommentContext
impl Clone for CommentContext
Source§fn clone(&self) -> CommentContext
fn clone(&self) -> CommentContext
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 CommentContext
impl Debug for CommentContext
Source§impl<'de> Deserialize<'de> for CommentContext
impl<'de> Deserialize<'de> for CommentContext
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 CommentContext
Source§impl PartialEq for CommentContext
impl PartialEq for CommentContext
Source§impl Serialize for CommentContext
impl Serialize for CommentContext
impl StructuralPartialEq for CommentContext
Auto Trait Implementations§
impl Freeze for CommentContext
impl RefUnwindSafe for CommentContext
impl Send for CommentContext
impl Sync for CommentContext
impl Unpin for CommentContext
impl UnsafeUnpin for CommentContext
impl UnwindSafe for CommentContext
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