Expand description
§vld-integration-common — shared helpers for vld integration crates
Internal crate with no stable API of its own: depend on the
integration crate you need (vld-dioxus, vld-leptos, vld-tauri,
vld-clap, vld-sqlx, vld-diesel, vld-sea, vld-surrealdb), which
re-exports what it uses from here.
format_path/flatten_issues— clean issue paths (user.email,items[0].name, no leading dot);form—VldServerError,FieldError,check_field,validate_args!(re-exported byvld-dioxus/vld-leptos);db— hidden macros that generate each database crate’s error type,Validated<S, T>and theVldText/VldInt/VldFloat/VldBoolcolumn wrappers inside that crate (so it can implement its own database traits without orphan-rule conflicts).
Guide: https://s00d.github.io/vld/integrations/shared/integration-common
Modules§
- db
- Shared building blocks for the database integration crates
(
vld-sqlx,vld-diesel,vld-sea,vld-surrealdb). - form
- Framework-agnostic server-function / form validation shared by
vld-dioxusandvld-leptos.
Macros§
- validate_
args - Validate function arguments inline, accumulating all errors into a
VldServerError. Field names are the argument names (nested issues getarg.subpaths).
Functions§
- flatten_
issues - Flatten a
VldErrorinto(path, message)pairs usingformat_path. - format_
path - Format a validation path as a clean dotted path:
user.email,items[0].name.