Module expect

Module expect 

Source

Modules§

ops
This module holds the implementations for the operations. Typically the advised way of creating these objects is to use the matching functions in crate::expect.

Functions§

array
Expects a JSON array. The returned ExpectArray has methods to defined the length, uniqueness, all values meet a condition, etc, that is expected to be returned.
email
Expect a valid-looking email address.
float
Expect a floating point number. See ExpectFloat for further methods to define what is expected. Such as the range it is expected to be within, or if it should be positive or negative.
integer
Expects an integer. See ExpectInteger for further methods to define what is expected. Such as the range it is expected to be within, or if it should be positive or negative.
iso_date_time
Expect a valid-looking ISO date time.
object
Expect a JSON object. See ExpectObject for further methods to define what is expected. Such as the range it is expected to be within, or if it should be positive or negative.
string
Expect a string. See ExpectString for further methods to defined the length, and partial contents, that is expected.
uuid
Expect a valid UUID.