#[non_exhaustive]pub struct UniqueRule {
pub label: Option<String>,
pub attributes: Vec<String>,
}Expand description
One UNIQUE rule: the named attributes are unique, jointly, across
every instance of the declaring entity and its subtypes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: Option<String>Rule label, e.g. UR1; None when the rule is unlabelled.
attributes: Vec<String>Attribute names as written; a qualified name (SELF\X.Y) is kept.
Implementations§
Trait Implementations§
Source§impl Clone for UniqueRule
impl Clone for UniqueRule
Source§impl Debug for UniqueRule
impl Debug for UniqueRule
impl Eq for UniqueRule
Source§impl PartialEq for UniqueRule
impl PartialEq for UniqueRule
impl StructuralPartialEq for UniqueRule
Auto Trait Implementations§
impl Freeze for UniqueRule
impl RefUnwindSafe for UniqueRule
impl Send for UniqueRule
impl Sync for UniqueRule
impl Unpin for UniqueRule
impl UnsafeUnpin for UniqueRule
impl UnwindSafe for UniqueRule
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