klauthed-core 0.2.0

Core primitives for klauthed: typed config, clock/time, request context, CQRS, domain, and validation.
Documentation
1
2
3
4
5
6
7
8
9
//! The [`Validate`] trait.

use super::ValidationErrors;

/// Types that can validate their own invariants.
pub trait Validate {
    /// Check invariants, returning every problem found (not just the first).
    fn validate(&self) -> Result<(), ValidationErrors>;
}