pub struct ObjectBuilder { /* private fields */ }
Expand description

Builder for Object with chainable configuration methods to create a new Object.

Implementations

Constructs a new ObjectBuilder.

Add or change type of the object e.g SchemaType::String.

Add or change additional format for detailing the schema type.

Add new property to the Object.

Method accepts property name and property component as an arguments.

Add field to the required fields of Object.

Add or change the title of the Object.

Add or change description of the property. Markdown syntax is supported.

Add or change default value for the object which is provided when user has not provided the input in Swagger UI.

Add or change deprecated status for Object.

Add or change enum property variants.

Add or change example shown in UI of the value for richier documentation.

Add or change write only flag for Object.

Add or change read only flag for Object.

Add or change additional Xml formatting of the Object.

Construct a new ArrayBuilder with this component set to ArrayBuilder::items.

Constructs a new Object taking all fields values from this object.

Trait Implementations

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.