kata/coerce

Values

pub fn bool() -> schema.Schema(Bool)

Bool that also accepts VString(“true”/“false”)

pub fn float() -> schema.Schema(Float)

Float that also accepts VString(“3.14”) -> 3.14 and VInt(1) -> 1.0

pub fn int() -> schema.Schema(Int)

Int that also accepts VString(“42”) -> 42

Search Document