pub struct Validator { /* private fields */ }Expand description
Validator instance for TypeScript ergonomics.
const validator = await createValidator();
const result = validator.validate('Booking', { ... });Implementations§
Trait Implementations§
Source§impl FromWasmAbi for Validator
impl FromWasmAbi for Validator
Source§impl IntoWasmAbi for Validator
impl IntoWasmAbi for Validator
Source§impl LongRefFromWasmAbi for Validator
impl LongRefFromWasmAbi for Validator
Source§impl OptionFromWasmAbi for Validator
impl OptionFromWasmAbi for Validator
Source§impl OptionIntoWasmAbi for Validator
impl OptionIntoWasmAbi for Validator
Source§impl RefFromWasmAbi for Validator
impl RefFromWasmAbi for Validator
Source§impl RefMutFromWasmAbi for Validator
impl RefMutFromWasmAbi for Validator
Source§impl TryFromJsValue for Validator
impl TryFromJsValue for Validator
Source§impl VectorFromWasmAbi for Validator
impl VectorFromWasmAbi for Validator
Source§impl VectorIntoWasmAbi for Validator
impl VectorIntoWasmAbi for Validator
impl SupportsConstructor for Validator
impl SupportsInstanceProperty for Validator
impl SupportsStaticProperty for Validator
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.