pub struct JsonField<T>(pub T);
Expand description
A JSON type for multipart field.
Tuple Fields
0: T
Trait Implementations
fn parse_from_multipart<'async_trait>(
field: Option<PoemField>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
fn parse_from_multipart<'async_trait>(
field: Option<PoemField>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Parse from multipart field.
fn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
fn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
Parse from repeated multipart field.
If it is true
, it means that this type is required.
type RawValueType = T::RawValueType
type RawValueType = T::RawValueType
The raw type used for validator. Read more
type RawElementValueType = T::RawElementValueType
type RawElementValueType = T::RawElementValueType
The raw element type used for validator.
Get schema reference of this type.
Returns a reference to the raw value.
fn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
Auto Trait Implementations
impl<T> RefUnwindSafe for JsonField<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for JsonField<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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