mod checks;
mod civil_date;
mod context;
mod email;
mod error;
mod formats;
mod norms;
mod phone;
mod schema;
mod traits;
#[doc(hidden)]
pub use async_trait as __async_trait;
pub use checks::{
alphanumeric, ascii, bool_is_true, digits, ends_with, finite_f64, list_len, list_unique,
list_unique_strings, non_empty, non_negative_i64, number_f64, number_i64, one_of, positive_i64,
prefix_nested, starts_with, string_len, timestamp_ms, LengthUnit, NumericValue,
};
pub use civil_date::{check_rfc3339, check_ymd, CivilDate};
pub use context::ValidationContext;
pub use email::check_email;
pub use error::{AsyncValidationError, FieldIssue, HostError};
pub use formats::{check_charset, check_slug, check_url, check_uuid};
pub use norms::{clamp_f64, clamp_i64, lowercase, strip_whitespace, trim, uppercase, ClampNum};
pub use phone::{check_phone_e164, check_phone_locale, dial_plan, DialPlan, DIAL_PLANS};
pub use schema::{CommandSpec, FieldSchema, InvariantSpec, ModelKind, ModelSchema, VariantSchema};
pub use traits::{
AsyncCheckOutcome, AsyncCheckResult, AsyncValidate, CheckOutcome, Client, DescribeModel,
IntoAsyncError, Normalize, ScopedValidate, Server, Validate,
};
pub use pactum_annotations_macros::Model;
pub use pactum_annotations_macros::PactumModel;
pub use pactum_annotations_macros::pactum_rule;
pub use pactum_annotations_macros::define_rule;
pub fn constraint_issue(field: &str, code: &str, reason: &str) -> FieldIssue {
FieldIssue::new(field, code, reason)
}