Struct poem::test::TestJsonValue
source[−]pub struct TestJsonValue<'a>(_);
test
only.Expand description
A JSON value.
Implementations
Returns the i64
array.
Returns the i64
array.
Returns the i64
array.
Asserts that value is integer
and it equals to value
.
Asserts that value is boolean
and it equals to value
.
Asserts that value is string
and it equals to value
.
Asserts that value is integer
array and it equals to values
.
Asserts that value is boolean
array and it equals to values
.
Asserts that value is string
array and it equals to values
.
Asserts that value is float
and it equals to value
.
Asserts that value is float
array and it equals to values
.
Returns the string
array.
Asserts that the value is an array and return TestJsonArray
.
Asserts that the value is an object and return TestJsonArray
.
pub fn object_array(&self) -> Vec<TestJsonObject<'a>>ⓘ
pub fn object_array(&self) -> Vec<TestJsonObject<'a>>ⓘ
Asserts that the value is an object array and return
Vec<TestJsonObject>
.
Asserts that the value is null.
Deserialize the value to T
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for TestJsonValue<'a>
impl<'a> Send for TestJsonValue<'a>
impl<'a> Sync for TestJsonValue<'a>
impl<'a> Unpin for TestJsonValue<'a>
impl<'a> UnwindSafe for TestJsonValue<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more