MCPcopy Create free account
hub / github.com/biblius/validify / Validate

Interface Validate

validify/src/lib.rs:29–32  ·  view source on GitHub ↗

Deriving [Validate] allows you to specify schema and field validations on structs. See the [repository](https://github.com/biblius/validify) for a full list of possible validations.

Source from the content-addressed store, hash-verified

27/// Deriving [Validate] allows you to specify schema and field validations on structs.
28/// See the [repository](https://github.com/biblius/validify) for a full list of possible validations.
29pub trait Validate {
30 /// Apply the provided validations to self
31 fn validate(&self) -> Result<(), ValidationErrors>;
32}
33
34/// Modifies the struct based on the provided `modify` parameters. Automatically implemented when deriving Validify.
35/// See the [repository](https://github.com/biblius/validify) for a full list of possible modifiers.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected