pub trait Sanitize {
// Required method
fn sanitize(&self, value: Value) -> IcDbmsResult<Value>;
}Expand description
Trait for sanitizing Values.
Required Methods§
Sourcefn sanitize(&self, value: Value) -> IcDbmsResult<Value>
fn sanitize(&self, value: Value) -> IcDbmsResult<Value>
Sanitizes the given Value.
In case of error it should return a crate::prelude::IcDbmsError::Sanitize error.
Sanitizers should not return error if the value is not of the expected type, they should just return the value as is.