pub struct DiffResponse {
pub files: Vec<FileDiff>,
pub stats: Vec<DiffStat>,
pub stat_only: bool,
pub word_diff: bool,
pub files_changed: usize,
pub total_additions: usize,
pub total_deletions: usize,
}Fields§
§files: Vec<FileDiff>§stats: Vec<DiffStat>§stat_only: bool§word_diff: bool§files_changed: usize§total_additions: usize§total_deletions: usizeTrait Implementations§
Source§impl CommandResponse for DiffResponse
impl CommandResponse for DiffResponse
Source§fn command_name(&self) -> &'static str
fn command_name(&self) -> &'static str
The command name for the response envelope
Source§fn human_readable(&self) -> String
fn human_readable(&self) -> String
Render as human-readable text
Source§fn to_json_output(&self) -> String
fn to_json_output(&self) -> String
Render as JSON (default implementation via serde). Read more
Source§fn to_json_output_pretty(&self) -> String
fn to_json_output_pretty(&self) -> String
Render as indented, human-readable JSON (opt-in via
--pretty).Source§impl Debug for DiffResponse
impl Debug for DiffResponse
Source§impl<'de> Deserialize<'de> for DiffResponse
impl<'de> Deserialize<'de> for DiffResponse
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
Auto Trait Implementations§
impl Freeze for DiffResponse
impl RefUnwindSafe for DiffResponse
impl Send for DiffResponse
impl Sync for DiffResponse
impl Unpin for DiffResponse
impl UnsafeUnpin for DiffResponse
impl UnwindSafe for DiffResponse
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