Struct poem_openapi::types::Any
source · pub struct Any<T>(pub T);
Expand description
A any type.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: DeserializeOwned + Send + Sync> ParseFromJSON for Any<T>
impl<T: DeserializeOwned + Send + Sync> ParseFromJSON for Any<T>
source§fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value
.source§fn parse_from_json_string(s: &str) -> ParseResult<Self>
fn parse_from_json_string(s: &str) -> ParseResult<Self>
Parse from JSON string.
source§impl<T: DeserializeOwned + Send + Sync> ParseFromXML for Any<T>
impl<T: DeserializeOwned + Send + Sync> ParseFromXML for Any<T>
source§fn parse_from_xml(value: Option<Value>) -> ParseResult<Self>
fn parse_from_xml(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value
.source§fn parse_from_xml_string(s: &str) -> ParseResult<Self>
fn parse_from_xml_string(s: &str) -> ParseResult<Self>
Parse from XML string.
source§impl<T: PartialEq> PartialEq<Any<T>> for Any<T>
impl<T: PartialEq> PartialEq<Any<T>> for Any<T>
source§impl<T: Send + Sync> Type for Any<T>
impl<T: Send + Sync> Type for Any<T>
source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
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.
source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§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.
impl<T: Copy> Copy for Any<T>
impl<T: Eq> Eq for Any<T>
impl<T> StructuralEq for Any<T>
impl<T> StructuralPartialEq for Any<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Any<T>where
T: RefUnwindSafe,
impl<T> Send for Any<T>where
T: Send,
impl<T> Sync for Any<T>where
T: Sync,
impl<T> Unpin for Any<T>where
T: Unpin,
impl<T> UnwindSafe for Any<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.