Transform

Trait Transform 

Source
pub trait Transform<T>: Send + Sync {
    // Required methods
    fn transform(&self, value: T) -> T;
    fn name(&self) -> &'static str;
}
Expand description

Trait for field transformations.

Transformations modify values during validation (e.g., trim, uppercase).

Required Methods§

Source

fn transform(&self, value: T) -> T

Transform the value.

Source

fn name(&self) -> &'static str

Get the transformation name.

Implementors§