#[non_exhaustive]pub struct ContractDrift {
pub command: String,
pub new_fields: Vec<String>,
pub removed_fields: Vec<String>,
pub type_changes: Vec<TypeChange>,
pub shape_matches: bool,
}Expand description
Differences found when checking a contract against baseline.
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.command: StringCommand name.
new_fields: Vec<String>Fields present in current but not in baseline.
removed_fields: Vec<String>Fields present in baseline but not in current.
type_changes: Vec<TypeChange>Fields whose type changed.
shape_matches: boolWhether the overall shape matches.
Trait Implementations§
Source§impl Clone for ContractDrift
impl Clone for ContractDrift
Source§impl Debug for ContractDrift
impl Debug for ContractDrift
Auto Trait Implementations§
impl Freeze for ContractDrift
impl RefUnwindSafe for ContractDrift
impl Send for ContractDrift
impl Sync for ContractDrift
impl Unpin for ContractDrift
impl UnsafeUnpin for ContractDrift
impl UnwindSafe for ContractDrift
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