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§
§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§fn clone(&self) -> ContractDrift
fn clone(&self) -> ContractDrift
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 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