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 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
pub fn example(self, example: Option<Value>) -> AllOfBuilder
Add or change example 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 nullable(self, nullable: bool) -> AllOfBuilder
pub fn nullable(self, nullable: bool) -> AllOfBuilder
Add or change nullable flag for Object.
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.
Trait Implementations§
Source§impl Default for AllOfBuilder
impl Default for AllOfBuilder
Source§fn default() -> AllOfBuilder
fn default() -> AllOfBuilder
Returns the “default value” for a type. 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 From<AllOfBuilder> for Schema
impl From<AllOfBuilder> for Schema
Source§fn from(builder: AllOfBuilder) -> Schema
fn from(builder: AllOfBuilder) -> Schema
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AllOfBuilder
impl RefUnwindSafe for AllOfBuilder
impl Send for AllOfBuilder
impl Sync for AllOfBuilder
impl Unpin for AllOfBuilder
impl UnwindSafe for AllOfBuilder
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