Skip to main content

Validate

Trait Validate 

Source
pub trait Validate {
    type Error;

    // Required method
    fn validate(&self) -> Result<(), Self::Error>;
}
Expand description

Validate

Re-check constructor invariants on decoded DTOs before they become authoritative.

Required Associated Types§

Source

type Error

Validation error for this DTO.

Required Methods§

Source

fn validate(&self) -> Result<(), Self::Error>

Validate this value’s domain invariants.

Implementors§