pub fn new<S: Into<String>>(title: S, version: S) -> Self {
        Self {
            title: title.into(),
            version: version.into(),
            ..Default::default()
        }
    }
/// Construct a new [`Info`] object.
///
/// This function accepts two arguments. One which is the title of the API and two the
/// version of the api document typically the API version.
///
/// # Examples
///
/// ```rust
/// # use utoipa::openapi::Info;
/// let info = Info::new("Pet api", "1.1.0");
/// ```
Construct a new [`Info`] object.
This function accepts two arguments. One which is the title of the API and two the
version of the api document typically the API version.
Construct a new [ ` Info ` ] object . This function accepts two arguments . One which is the title of the API and two the version of the api document typically the API version .
pub fn new<S: Into<String>>(title: S, version: S) -> Self {
        Self {
            title: title.into(),
            version: version.into(),
            ..Default::default()
        }
    }
pub fn new < S : Into < String > > ( title : S , version : S ) -> Self { Self { title : title . into ( ) , version : version . into ( ) , .. Default :: default ( ) } }
Construct a new [`Info`] object.
Construct a new [ ` Info ` ] object .
title
S
version
S
examples
None
use utoipa::openapi::info;
None