pub struct SchemaConstraints {
pub schema: String,
pub fields: Vec<FieldConstraint>,
}Expand description
Validation constraints for all fields in one schema.
Fields§
§schema: StringSchema name in gnostic format (e.g., auth.v1.ClientInfo).
fields: Vec<FieldConstraint>Per-field constraints.
Trait Implementations§
Source§impl Clone for SchemaConstraints
impl Clone for SchemaConstraints
Source§fn clone(&self) -> SchemaConstraints
fn clone(&self) -> SchemaConstraints
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 SchemaConstraints
impl RefUnwindSafe for SchemaConstraints
impl Send for SchemaConstraints
impl Sync for SchemaConstraints
impl Unpin for SchemaConstraints
impl UnwindSafe for SchemaConstraints
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