pub fn new<S: Into<String>>(url: S) -> Self {
        Self {
            url: url.into(),
            ..Default::default()
        }
    }
/// Construct a new [`Server`] with given url. Url can be valid http url or context path of the url.
///
/// If url is valid http url then all path operation request's will be forwarded to the selected [`Server`].
///
/// If url is path of url e.g. `/api/v1` then the url will be appended to the servers address and the
/// operations will be forwarded to location `server address + url`.
///
///
/// # Examples
///
/// Create new server with url path.
/// ```rust
/// # use utoipa::openapi::server::Server;
///  Server::new("/api/v1");
/// ```
///
/// Create new server with alternative server.
/// ```rust
/// # use utoipa::openapi::server::Server;
///  Server::new("https://alternative.pet-api.test/api/v1");
/// ```
Construct a new [`Server`] with given url. Url can be valid http url or context path of the url.
If url is valid http url then all path operation request's will be forwarded to the selected [`Server`].

If url is path of url e.g. `/api/v1` then the url will be appended to the servers address and the
operations will be forwarded to location `server address + url`.
Construct a new [ ` Server ` ] with given url . Url can be valid http url or context path of the url . If url is valid http url then all path operation request ' s will be forwarded to the selected [ ` Server ` ] . If url is path of url e . g . ` / api / v1 ` then the url will be appended to the servers address and the operations will be forwarded to location ` server address + url ` .
pub fn new<S: Into<String>>(url: S) -> Self {
        Self {
            url: url.into(),
            ..Default::default()
        }
    }
pub fn new < S : Into < String > > ( url : S ) -> Self { Self { url : url . into ( ) , .. Default :: default ( ) } }
Construct a new [`Server`] with given url.
Construct a new [ ` Server ` ] with given url .
url
S
examples
Create new server with url path.
Create new server with url path .
use utoipa::openapi::server::server;


Create new server with alternative server.
Create new server with alternative server .
use utoipa::openapi::server::server;
None