Expand description
§rusdantic-core
Core validation traits, error types, and built-in validation rules for the Rusdantic framework. This crate is the runtime component — it contains everything that the derive macro’s generated code calls at runtime.
Users should not depend on this crate directly. Instead, use the rusdantic
facade crate which re-exports everything needed.
Re-exports§
pub use error::PathSegment;pub use error::ValidationError;pub use error::ValidationErrors;pub use traits::Validate;
Modules§
- adapter
- TypeAdapter: standalone validation and serialization without BaseModel.
- coerce
- Type coercion helpers for lax deserialization mode.
- dump
- Advanced serialization with options (model_dump / model_dump_json equivalent).
- error
- Error types for validation results.
- re_
export - Re-export regex for use in generated code (OnceLock
statics). This avoids requiring users to add regexas a direct dependency. - rules
- Built-in validation rules for Rusdantic.
- traits
- Core validation traits.