Skip to main content

aviso_validators/
lib.rs

1// (C) Copyright 2024- ECMWF and individual contributors.
2//
3// This software is licensed under the terms of the Apache Licence Version 2.0
4// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5// In applying this licence, ECMWF does not waive the privileges and immunities
6// granted to it by virtue of its status as an intergovernmental organisation nor
7// does it submit to any jurisdiction.
8
9//! Field validation library for Aviso notification system
10//!
11//! This library provides validation handlers for different field types
12
13pub mod constraints;
14pub mod date;
15pub mod enum_handler;
16pub mod expver;
17pub mod float;
18pub mod int;
19pub mod point;
20pub mod polygon;
21pub mod string;
22pub mod time;
23pub mod types;
24
25// Re-export main types for convenience
26pub use types::ValidationRules;
27
28// Re-export handlers
29pub use constraints::{
30    EnumConstraint, NumericConstraint, parse_enum_constraint, parse_float_constraint,
31    parse_int_constraint,
32};
33pub use date::DateHandler;
34pub use enum_handler::EnumHandler;
35pub use expver::ExpverHandler;
36pub use float::FloatHandler;
37pub use int::IntHandler;
38pub use point::PointHandler;
39pub use polygon::PolygonHandler;
40pub use string::StringHandler;
41pub use time::TimeHandler;