pub struct StructuredPatch {
pub patch_id: Uuid,
pub summary: String,
pub edits: Vec<FileEdit>,
pub notes: Vec<String>,
}Fields§
§patch_id: Uuid§summary: String§edits: Vec<FileEdit>§notes: Vec<String>Implementations§
Source§impl StructuredPatch
impl StructuredPatch
pub fn files_changed(&self) -> usize
pub fn total_lines_changed(&self) -> usize
pub fn per_file_lines_changed(&self) -> Vec<usize>
pub fn file_paths(&self) -> Vec<&str>
Trait Implementations§
Source§impl Clone for StructuredPatch
impl Clone for StructuredPatch
Source§fn clone(&self) -> StructuredPatch
fn clone(&self) -> StructuredPatch
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 StructuredPatch
impl Debug for StructuredPatch
Source§impl<'de> Deserialize<'de> for StructuredPatch
impl<'de> Deserialize<'de> for StructuredPatch
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 StructuredPatch
impl RefUnwindSafe for StructuredPatch
impl Send for StructuredPatch
impl Sync for StructuredPatch
impl Unpin for StructuredPatch
impl UnsafeUnpin for StructuredPatch
impl UnwindSafe for StructuredPatch
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