pub struct ChangePreview {
pub file_changes: Vec<FileChange>,
pub change_sets: Vec<ChangeSet>,
}Expand description
Change preview.
Fields§
§file_changes: Vec<FileChange>The file changes.
change_sets: Vec<ChangeSet>The change sets.
Implementations§
Source§impl ChangePreview
impl ChangePreview
Sourcepub fn new(file_changes: Vec<FileChange>, change_sets: Vec<ChangeSet>) -> Self
pub fn new(file_changes: Vec<FileChange>, change_sets: Vec<ChangeSet>) -> Self
Creates a new change preview.
Sourcepub fn generate_preview(&self) -> String
pub fn generate_preview(&self) -> String
Generates a preview of the changes.
Auto Trait Implementations§
impl Freeze for ChangePreview
impl RefUnwindSafe for ChangePreview
impl Send for ChangePreview
impl Sync for ChangePreview
impl Unpin for ChangePreview
impl UnsafeUnpin for ChangePreview
impl UnwindSafe for ChangePreview
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