pub struct FieldConstraint {
pub path: String,
pub rule_ids: Vec<String>,
}Expand description
A constraint specification for a single field path.
A field constraint pairs an XPath-like field path with a list of rule IDs
from the RuleRegistry that must all pass for the field to be valid.
Fields§
§path: StringXPath-like path identifying the field (e.g. /Document/GrpHdr/MsgId).
rule_ids: Vec<String>Rule IDs to apply. Must be registered in the RuleRegistry at validation time.
Implementations§
Trait Implementations§
Source§impl Clone for FieldConstraint
impl Clone for FieldConstraint
Source§fn clone(&self) -> FieldConstraint
fn clone(&self) -> FieldConstraint
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 moreAuto Trait Implementations§
impl Freeze for FieldConstraint
impl RefUnwindSafe for FieldConstraint
impl Send for FieldConstraint
impl Sync for FieldConstraint
impl Unpin for FieldConstraint
impl UnsafeUnpin for FieldConstraint
impl UnwindSafe for FieldConstraint
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