pub fn new(name: &'a str, url: &'a str) -> Self {
        Self {
            name: Cow::Borrowed(name),
            url: Cow::Borrowed(url),
            ..Default::default()
        }
    }
/// Create new [`Url`].
///
/// Name is shown in the select dropdown when there are multiple docs in Swagger UI.
///
/// Url is path which exposes the OpenAPI doc.
///
/// # Examples
///
/// ```rust
/// # use utoipa_swagger_ui::Url;
/// let url = Url::new("My Api", "/api-doc/openapi.json");
/// ```
Create new [`Url`].
Name is shown in the select dropdown when there are multiple docs in Swagger UI.

Url is path which exposes the OpenAPI doc.
Create new [ ` Url ` ] . Name is shown in the select dropdown when there are multiple docs in Swagger UI . Url is path which exposes the OpenAPI doc .
pub fn new(name: &'a str, url: &'a str) -> Self {
        Self {
            name: Cow::Borrowed(name),
            url: Cow::Borrowed(url),
            ..Default::default()
        }
    }
pub fn new ( name : & ' a str , url : & ' a str ) -> Self { Self { name : Cow :: Borrowed ( name ) , url : Cow :: Borrowed ( url ) , .. Default :: default ( ) } }
Create new [`Url`].
Create new [ ` Url ` ] .
name
&'a str
url
&'a str
examples
None
use utoipa_swagger_ui::url;
let url = Url::new("My Api", "/api-doc/openapi.json");
```
let url = Url :: new ( " My Api " " / api - doc / openapi . json " ) ; ` ` `