pub enum AssertionPattern {
Isa {
binding: BindingId,
include_subtypes: bool,
type_id: TypeId,
},
Has {
attribute: BindingId,
attribute_id: AttributeId,
owner: BindingId,
},
Links {
players: Vec<AssertionRolePlayer>,
relation: BindingId,
relation_id: TypeId,
},
Value {
comparator: ValueComparator,
left: ValueOperand,
right: ValueOperand,
},
Not {
patterns: Vec<AssertionPattern>,
},
}Expand description
Minimal closed typed pattern algebra used by migration assertions.
Variants§
Isa
Constrain a binding to one schema type, optionally including subtypes.
Fields
Has
Bind an owned attribute through an effective ownership.
Fields
§
attribute_id: AttributeIdThe schema attribute type being read.
Links
Bind a relation and role-qualified players.
Fields
§
players: Vec<AssertionRolePlayer>The role-qualified players the relation must link.
Value
Compare two exact typed scalar operands.
Fields
§
comparator: ValueComparatorThe comparison operator.
§
left: ValueOperandThe left operand.
§
right: ValueOperandThe right operand.
Not
Negate a closed nested conjunction.
Fields
§
patterns: Vec<AssertionPattern>The conjunction that must not match.
Trait Implementations§
Source§impl Clone for AssertionPattern
impl Clone for AssertionPattern
Source§fn clone(&self) -> AssertionPattern
fn clone(&self) -> AssertionPattern
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 AssertionPattern
impl Debug for AssertionPattern
impl Eq for AssertionPattern
Source§impl PartialEq for AssertionPattern
impl PartialEq for AssertionPattern
Source§impl Serialize for AssertionPattern
impl Serialize for AssertionPattern
impl StructuralPartialEq for AssertionPattern
Auto Trait Implementations§
impl Freeze for AssertionPattern
impl RefUnwindSafe for AssertionPattern
impl Send for AssertionPattern
impl Sync for AssertionPattern
impl Unpin for AssertionPattern
impl UnsafeUnpin for AssertionPattern
impl UnwindSafe for AssertionPattern
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