pub fn with_capacity(capacity: usize) -> Self {
        Self {
            items: Vec::with_capacity(capacity),
            description: None,
        }
    }
/// Construct a new [`OneOf`] component with given capacity.
///
/// OneOf component is then able to contain number of components without
/// reallocating.
///
/// # Examples
///
/// Create [`OneOf`] component with initial capacity of 5.
/// ```rust
/// # use utoipa::openapi::schema::OneOf;
/// let one_of = OneOf::with_capacity(5);
/// ```
Construct a new [`OneOf`] component with given capacity.
OneOf component is then able to contain number of components without
reallocating.
Construct a new [ ` OneOf ` ] component with given capacity . OneOf component is then able to contain number of components without reallocating .
pub fn with_capacity(capacity: usize) -> Self {
        Self {
            items: Vec::with_capacity(capacity),
            description: None,
        }
    }
pub fn with_capacity ( capacity : usize ) -> Self { Self { items : Vec :: with_capacity ( capacity ) , description : None , } }
Construct a new [`OneOf`] component with given capacity.
Construct a new [ ` OneOf ` ] component with given capacity .
capacity
usize
examples
Create [`OneOf`] component with initial capacity of 5.
Create [ ` OneOf ` ] component with initial capacity of 5 .
use utoipa::openapi::schema::oneof;
let one_of = OneOf::with_capacity(5);
```
let one_of = OneOf :: with_capacity ( 5 ) ; ` ` `