#[non_exhaustive]pub enum RuleScope {
Entity {
declared_on: String,
},
Type {
type_name: String,
},
Global {
rule: String,
},
}Expand description
The declaration holding a rule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Entity
A WHERE rule of an entity, binding it and every subtype.
Type
A WHERE rule of a defined type, binding every value of it.
Global
A global RULE.
Trait Implementations§
impl Eq for RuleScope
impl StructuralPartialEq for RuleScope
Auto Trait Implementations§
impl Freeze for RuleScope
impl RefUnwindSafe for RuleScope
impl Send for RuleScope
impl Sync for RuleScope
impl Unpin for RuleScope
impl UnsafeUnpin for RuleScope
impl UnwindSafe for RuleScope
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