pub struct FieldChange {
pub name: String,
pub old_type: TypeInfo,
pub new_type: TypeInfo,
pub required_changed: bool,
}Expand description
A field whose type or required status changed between two schema versions.
Fields§
§name: StringThe field name.
old_type: TypeInfoThe type in the first (old) schema.
new_type: TypeInfoThe type in the second (new) schema.
required_changed: boolWhether the required status differs between the two schemas.
Trait Implementations§
Source§impl Clone for FieldChange
impl Clone for FieldChange
Source§fn clone(&self) -> FieldChange
fn clone(&self) -> FieldChange
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 FieldChange
impl Debug for FieldChange
Source§impl PartialEq for FieldChange
impl PartialEq for FieldChange
impl StructuralPartialEq for FieldChange
Auto Trait Implementations§
impl Freeze for FieldChange
impl RefUnwindSafe for FieldChange
impl Send for FieldChange
impl Sync for FieldChange
impl Unpin for FieldChange
impl UnsafeUnpin for FieldChange
impl UnwindSafe for FieldChange
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