pub struct TypeValidation {
pub fields: BTreeMap<String, FieldValidation>,
pub nested: BTreeMap<String, TypeValidation>,
}Expand description
Description of validation rules for a type.
Fields§
§fields: BTreeMap<String, FieldValidation>Rules for each field.
nested: BTreeMap<String, TypeValidation>Nested types that also have validation.
Implementations§
Source§impl TypeValidation
impl TypeValidation
Sourcepub fn new() -> TypeValidation
pub fn new() -> TypeValidation
Create a new TypeValidation
Trait Implementations§
Source§impl Clone for TypeValidation
impl Clone for TypeValidation
Source§fn clone(&self) -> TypeValidation
fn clone(&self) -> TypeValidation
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 moreSource§impl Debug for TypeValidation
impl Debug for TypeValidation
Source§impl Default for TypeValidation
impl Default for TypeValidation
Source§fn default() -> TypeValidation
fn default() -> TypeValidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TypeValidation
impl<'de> Deserialize<'de> for TypeValidation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeValidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeValidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TypeValidation
impl PartialEq for TypeValidation
Source§impl Serialize for TypeValidation
impl Serialize for TypeValidation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TypeValidation
Auto Trait Implementations§
impl Freeze for TypeValidation
impl RefUnwindSafe for TypeValidation
impl Send for TypeValidation
impl Sync for TypeValidation
impl Unpin for TypeValidation
impl UnwindSafe for TypeValidation
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