pub fn with_primary(name: &'a str, url: &'a str, primary: bool) -> Self {
        Self {
            name: Cow::Borrowed(name),
            url: Cow::Borrowed(url),
            primary,
        }
    }
/// Create new [`Url`] with primary flag.
///
/// Primary flag allows users to override the default behavior of the Swagger UI for selecting the primary
/// doc to display. By default when there are multiple docs in Swagger UI the first one in the list
/// will be the primary.
///
/// Name is shown in the select dropdown when there are multiple docs in Swagger UI.
///
/// Url is path which exposes the OpenAPI doc.
///
/// # Examples
///
/// Set "My Api" as primary.
/// ```rust
/// # use utoipa_swagger_ui::Url;
/// let url = Url::with_primary("My Api", "/api-doc/openapi.json", true);
/// ```
Create new [`Url`] with primary flag.
Primary flag allows users to override the default behavior of the Swagger UI for selecting the primary
doc to display. By default when there are multiple docs in Swagger UI the first one in the list
will be the primary.

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 ` ] with primary flag . Primary flag allows users to override the default behavior of the Swagger UI for selecting the primary doc to display . By default when there are multiple docs in Swagger UI the first one in the list will be the primary . 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 with_primary(name: &'a str, url: &'a str, primary: bool) -> Self {
        Self {
            name: Cow::Borrowed(name),
            url: Cow::Borrowed(url),
            primary,
        }
    }
pub fn with_primary ( name : & ' a str , url : & ' a str , primary : bool ) -> Self { Self { name : Cow :: Borrowed ( name ) , url : Cow :: Borrowed ( url ) , primary , } }
Create new [`Url`] with primary flag.
Create new [ ` Url ` ] with primary flag .
name
&'a str
url
&'a str
primary
bool
examples
Set "My Api" as primary.
Set " My Api " as primary .
use utoipa_swagger_ui::url;
let url = Url::with_primary("My Api", "/api-doc/openapi.json", true);
```
let url = Url :: with_primary ( " My Api " " / api - doc / openapi . json " true ) ; ` ` `