pub trait Validable: Send + Sync {
    // Required method
    fn validate(
        &self,
        error_details: &mut ErrorDetails<'_>
    ) -> Result<(), LsError>;
}

Required Methods§

source

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

Implementations on Foreign Types§

source§

impl<V0: Validable, V1: Validable> Validable for (&V0, &V1)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable> Validable for (&V0, &V1, &V2)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable> Validable for (&V0, &V1, &V2, &V3)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable, V4: Validable> Validable for (&V0, &V1, &V2, &V3, &V4)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable, V4: Validable, V5: Validable> Validable for (&V0, &V1, &V2, &V3, &V4, &V5)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable, V4: Validable, V5: Validable, V6: Validable> Validable for (&V0, &V1, &V2, &V3, &V4, &V5, &V6)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable, V4: Validable, V5: Validable, V6: Validable, V7: Validable> Validable for (&V0, &V1, &V2, &V3, &V4, &V5, &V6, &V7)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable, V4: Validable, V5: Validable, V6: Validable, V7: Validable, V8: Validable> Validable for (&V0, &V1, &V2, &V3, &V4, &V5, &V6, &V7, &V8)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

source§

impl<V0: Validable, V1: Validable, V2: Validable, V3: Validable, V4: Validable, V5: Validable, V6: Validable, V7: Validable, V8: Validable, V9: Validable> Validable for (&V0, &V1, &V2, &V3, &V4, &V5, &V6, &V7, &V8, &V9)

source§

fn validate(&self, error_details: &mut ErrorDetails<'_>) -> Result<(), LsError>

Implementors§

source§

impl<F> Validable for F
where F: Send + Sync + Fn(&mut ErrorDetails<'_>) -> Result<(), LsError>,