pub struct FileDiff {
pub path: String,
pub kind: i32,
pub hunks: Vec<DiffHunk>,
pub classification: i32,
pub importance: i32,
pub symbol_changes: Vec<SymbolChange>,
pub semantic_index_backed: bool,
}Fields§
§path: String§kind: i32§hunks: Vec<DiffHunk>§classification: i32Semantic classification of the modification. Merkle-index-derived when semantic_index_backed is true, else the legacy parse heuristic.
importance: i32Review importance from the repository diff analyzer.
symbol_changes: Vec<SymbolChange>Per-symbol deltas from the semantic index; empty when the file has no attached index.
semantic_index_backed: boolTrue when classification and symbol_changes came from the merkle semantic index; false when they fell back to the legacy parse heuristic (or are unknown). Lets a client show semantic badges only when real index data backs them.
Implementations§
Source§impl FileDiff
impl FileDiff
Sourcepub fn kind(&self) -> FileDiffKind
pub fn kind(&self) -> FileDiffKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: FileDiffKind)
pub fn set_kind(&mut self, value: FileDiffKind)
Sets kind to the provided enum value.
Sourcepub fn classification(&self) -> ChangeClassification
pub fn classification(&self) -> ChangeClassification
Returns the enum value of classification, or the default if the field is set to an invalid enum value.
Sourcepub fn set_classification(&mut self, value: ChangeClassification)
pub fn set_classification(&mut self, value: ChangeClassification)
Sets classification to the provided enum value.
Sourcepub fn importance(&self) -> ChangeImportance
pub fn importance(&self) -> ChangeImportance
Returns the enum value of importance, or the default if the field is set to an invalid enum value.
Sourcepub fn set_importance(&mut self, value: ChangeImportance)
pub fn set_importance(&mut self, value: ChangeImportance)
Sets importance to the provided enum value.
Trait Implementations§
Source§impl Message for FileDiff
impl Message for FileDiff
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.