pub struct AllOf {
pub items: Vec<RefOr<Schema>>,
pub title: Option<String>,
pub description: Option<String>,
pub default: Option<Value>,
pub example: Option<Value>,
pub discriminator: Option<Discriminator>,
pub nullable: bool,
}Expand description
AllOf Composite Object component holds multiple components together where API endpoint will return a combination of all of them.
See Schema::AllOf for more details.
Fields§
§items: Vec<RefOr<Schema>>Components of AllOf component.
title: Option<String>Changes the AllOf title.
description: Option<String>Description of the AllOf. Markdown syntax is supported.
default: Option<Value>Default value which is provided when user has not provided the input in Swagger UI.
example: Option<Value>Example shown in UI of the value for richer documentation.
discriminator: Option<Discriminator>Optional discriminator field can be used to aid deserialization, serialization and validation of a specific schema.
nullable: boolSet true to allow "null" to be used as value for given type.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AllOf
impl<'de> Deserialize<'de> for AllOf
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AllOf, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AllOf, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AllOf> for AllOfBuilder
impl From<AllOf> for AllOfBuilder
Source§fn from(value: AllOf) -> AllOfBuilder
fn from(value: AllOf) -> AllOfBuilder
Converts to this type from the input type.
Source§impl From<AllOfBuilder> for AllOf
impl From<AllOfBuilder> for AllOf
Source§fn from(value: AllOfBuilder) -> AllOf
fn from(value: AllOfBuilder) -> AllOf
Converts to this type from the input type.
Source§impl Serialize for AllOf
impl Serialize for AllOf
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AllOf
Auto Trait Implementations§
impl Freeze for AllOf
impl RefUnwindSafe for AllOf
impl Send for AllOf
impl Sync for AllOf
impl Unpin for AllOf
impl UnwindSafe for AllOf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more