Expand description
OneOf Discriminator Object component holds multiple components together where API endpoint could return any of them.
See Schema::OneOf
for more details.
Fields
items: Vec<RefOr<Schema>>
Components of OneOf component.
description: Option<String>
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for OneOf
impl<'de> Deserialize<'de> for OneOf
sourcefn 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
sourceimpl From<OneOf> for OneOfBuilder
impl From<OneOf> for OneOfBuilder
sourceimpl From<OneOfBuilder> for OneOf
impl From<OneOfBuilder> for OneOf
sourcefn from(value: OneOfBuilder) -> Self
fn from(value: OneOfBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for OneOf
impl Send for OneOf
impl Sync for OneOf
impl Unpin for OneOf
impl UnwindSafe for OneOf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more