Enum openapiv3::VariantOrUnknown [−][src]
pub enum VariantOrUnknown<T> {
Item(T),
Unknown(String),
}
Variants
Unknown(String)
Tuple Fields of Unknown
0: String
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<T> RefUnwindSafe for VariantOrUnknown<T> where
T: RefUnwindSafe,
impl<T> Send for VariantOrUnknown<T> where
T: Send,
impl<T> Sync for VariantOrUnknown<T> where
T: Sync,
impl<T> Unpin for VariantOrUnknown<T> where
T: Unpin,
impl<T> UnwindSafe for VariantOrUnknown<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more