pub struct ConstraintDiff {
pub field: String,
pub parent_constraint: Option<Constraint>,
pub child_constraint: Option<Constraint>,
pub change: ChangeType,
}Expand description
Diff for a single constraint field.
Fields§
§field: StringField name.
parent_constraint: Option<Constraint>Parent constraint (if any).
child_constraint: Option<Constraint>Child constraint (if any).
change: ChangeTypeType of change.
Implementations§
Source§impl ConstraintDiff
impl ConstraintDiff
Sourcepub fn new(
field: String,
parent_constraint: Option<Constraint>,
child_constraint: Option<Constraint>,
) -> Self
pub fn new( field: String, parent_constraint: Option<Constraint>, child_constraint: Option<Constraint>, ) -> Self
Create a new constraint diff.
Trait Implementations§
Source§impl Clone for ConstraintDiff
impl Clone for ConstraintDiff
Source§fn clone(&self) -> ConstraintDiff
fn clone(&self) -> ConstraintDiff
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 moreSource§impl Debug for ConstraintDiff
impl Debug for ConstraintDiff
Source§impl<'de> Deserialize<'de> for ConstraintDiff
impl<'de> Deserialize<'de> for ConstraintDiff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConstraintDiff
impl RefUnwindSafe for ConstraintDiff
impl Send for ConstraintDiff
impl Sync for ConstraintDiff
impl Unpin for ConstraintDiff
impl UnwindSafe for ConstraintDiff
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