pub struct AllOfBuilder { /* private fields */ }Implementations§
Source§impl AllOfBuilder
impl AllOfBuilder
Sourcepub fn new() -> AllOfBuilder
pub fn new() -> AllOfBuilder
Constructs a new AllOfBuilder.
Source§impl AllOfBuilder
impl AllOfBuilder
Sourcepub fn item<I>(self, component: I) -> AllOfBuilder
pub fn item<I>(self, component: I) -> AllOfBuilder
Adds a given Schema to AllOf Composite Object.
Sourcepub fn schema_type<T>(self, schema_type: T) -> AllOfBuilderwhere
T: Into<SchemaType>,
pub fn schema_type<T>(self, schema_type: T) -> AllOfBuilderwhere
T: Into<SchemaType>,
Add or change type of the object e.g. to change type to string
use value SchemaType::Type(Type::String).
Sourcepub fn title<I>(self, title: Option<I>) -> AllOfBuilder
pub fn title<I>(self, title: Option<I>) -> AllOfBuilder
Add or change the title of the AllOf.
Sourcepub fn description<I>(self, description: Option<I>) -> AllOfBuilder
pub fn description<I>(self, description: Option<I>) -> AllOfBuilder
Add or change optional description for AllOf component.
Sourcepub fn default(self, default: Option<Value>) -> AllOfBuilder
pub fn default(self, default: Option<Value>) -> AllOfBuilder
Add or change default value for the object which is provided when user has not provided the input in Swagger UI.
Sourcepub fn example(self, example: Option<Value>) -> AllOfBuilder
👎Deprecated: Since OpenAPI 3.1 prefer using examples
pub fn example(self, example: Option<Value>) -> AllOfBuilder
examplesAdd or change example shown in UI of the value for richer documentation.
Deprecated since 3.0.x. Prefer AllOfBuilder::examples instead
Sourcepub fn examples<I, V>(self, examples: I) -> AllOfBuilder
pub fn examples<I, V>(self, examples: I) -> AllOfBuilder
Add or change examples shown in UI of the value for richer documentation.
Sourcepub fn discriminator(self, discriminator: Option<Discriminator>) -> AllOfBuilder
pub fn discriminator(self, discriminator: Option<Discriminator>) -> AllOfBuilder
Add or change discriminator field of the composite AllOf type.
Sourcepub fn extensions(self, extensions: Option<Extensions>) -> AllOfBuilder
pub fn extensions(self, extensions: Option<Extensions>) -> AllOfBuilder
Add openapi extensions (x-something) for AllOf.
Sourcepub fn to_array_builder(self) -> ArrayBuilder
pub fn to_array_builder(self) -> ArrayBuilder
Construct a new ArrayBuilder with this component set to ArrayBuilder::items.