#[non_exhaustive]pub struct PatchSummary {
pub files: u64,
pub added: u64,
pub removed: u64,
}Expand description
Server-authored edit-family diff summary: files counts the stored patch
document’s file entries; added and removed are the total +/-
prefixed LINE counts summed over the stored patch’s hunks across all files —
line counts, never hunk or byte counts. Rides the toolCall item beside
patchRef; the body is fetched via item/readOutput with patchRef.id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.files: u64File entries in the stored patch document.
added: u64Total +-prefixed line count across all files’ hunks.
removed: u64Total --prefixed line count across all files’ hunks.
Trait Implementations§
Source§impl Clone for PatchSummary
impl Clone for PatchSummary
Source§impl Debug for PatchSummary
impl Debug for PatchSummary
Source§impl<'de> Deserialize<'de> for PatchSummary
impl<'de> Deserialize<'de> for PatchSummary
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 PatchSummary
Source§impl PartialEq for PatchSummary
impl PartialEq for PatchSummary
Source§impl Serialize for PatchSummary
impl Serialize for PatchSummary
impl StructuralPartialEq for PatchSummary
Auto Trait Implementations§
impl Forget for PatchSummary
impl Freeze for PatchSummary
impl Move for PatchSummary
impl RefUnwindSafe for PatchSummary
impl Send for PatchSummary
impl Sync for PatchSummary
impl Unpin for PatchSummary
impl UnsafeUnpin for PatchSummary
impl UnwindSafe for PatchSummary
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