#[non_exhaustive]pub struct WhereRule {
pub label: String,
pub expression: String,
}Expand description
One WHERE rule: a named constraint an instance must satisfy.
The bundled tables carry the label only; Self::expression is empty
for them (the expressions are CC BY-ND schema text, see
data/NOTICE.md). A schema parsed from EXPRESS source with the express
feature keeps the whitespace-normalised expression.
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: StringRule label as declared, e.g. CurveIs3D.
expression: StringConstraint expression as written, or empty when not recorded.
Implementations§
Trait Implementations§
impl Eq for WhereRule
impl StructuralPartialEq for WhereRule
Auto Trait Implementations§
impl Freeze for WhereRule
impl RefUnwindSafe for WhereRule
impl Send for WhereRule
impl Sync for WhereRule
impl Unpin for WhereRule
impl UnsafeUnpin for WhereRule
impl UnwindSafe for WhereRule
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