pub struct FieldConstraint {
pub field: String,
pub constraint: SchemaConstraint,
}Expand description
A constraint bound to the field it describes
Fields§
§field: StringThe name of the field, as it appears on the wire
constraint: SchemaConstraintWhat the constraint says
Implementations§
Source§impl FieldConstraint
impl FieldConstraint
Sourcepub fn new(field: impl Into<String>, constraint: SchemaConstraint) -> Self
pub fn new(field: impl Into<String>, constraint: SchemaConstraint) -> Self
Creates a new FieldConstraint for field
Trait Implementations§
Source§impl Clone for FieldConstraint
impl Clone for FieldConstraint
Source§impl Debug for FieldConstraint
impl Debug for FieldConstraint
Source§impl PartialEq for FieldConstraint
impl PartialEq for FieldConstraint
impl StructuralPartialEq for FieldConstraint
Auto 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