Trait valico::json_dsl::Coercer
[−]
[src]
pub trait Coercer: Send + Sync { fn get_primitive_type(&self) -> PrimitiveType; fn coerce(
&self,
_: &mut Value,
_: &str
) -> Result<Option<Value>, ValicoErrors>; }
Required Methods
fn get_primitive_type(&self) -> PrimitiveType
fn coerce(&self, _: &mut Value, _: &str) -> Result<Option<Value>, ValicoErrors>
Implementors
impl Coercer for StringCoercer
impl Coercer for I64Coercer
impl Coercer for U64Coercer
impl Coercer for F64Coercer
impl Coercer for BooleanCoercer
impl Coercer for NullCoercer
impl Coercer for ArrayCoercer
impl Coercer for ObjectCoercer