Struct poem_openapi::types::Any
source · [−]pub struct Any<T>(pub T);
Expand description
A any type.
Tuple Fields
0: T
Trait Implementations
Parse from serde_json::Value
.
Parse from JSON string.
If it is true
, it means that this type is required.
type RawValueType = T
type RawValueType = T
The raw type used for validator. Read more
type RawElementValueType = T
type RawElementValueType = T
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 Any<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Any<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