Skip to main content

Crate vld_integration_common

Crate vld_integration_common 

Source
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 by vld-dioxus / vld-leptos);
  • db — hidden macros that generate each database crate’s error type, Validated<S, T> and the VldText / VldInt / VldFloat / VldBool column 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-dioxus and vld-leptos.

Macros§

validate_args
Validate function arguments inline, accumulating all errors into a VldServerError. Field names are the argument names (nested issues get arg.sub paths).

Functions§

flatten_issues
Flatten a VldError into (path, message) pairs using format_path.
format_path
Format a validation path as a clean dotted path: user.email, items[0].name.