pub struct ContractDiff {
pub old_version: String,
pub new_version: String,
pub sections: Vec<SectionDiff>,
pub suggested_bump: SemverBump,
}Expand description
The result of diffing two contracts.
Fields§
§old_version: StringVersion in the “old” contract.
new_version: StringVersion in the “new” contract.
sections: Vec<SectionDiff>Per-section change summaries.
suggested_bump: SemverBumpSuggested semver bump based on the changes.
Trait Implementations§
Source§impl Clone for ContractDiff
impl Clone for ContractDiff
Source§fn clone(&self) -> ContractDiff
fn clone(&self) -> ContractDiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContractDiff
impl RefUnwindSafe for ContractDiff
impl Send for ContractDiff
impl Sync for ContractDiff
impl Unpin for ContractDiff
impl UnsafeUnpin for ContractDiff
impl UnwindSafe for ContractDiff
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