pub fn new(row_source: T, base_uri: Option<&str>) -> Self {
        Self {
            row_source,
            base_uri: base_uri.map(|x| Url::parse(x).unwrap()),
            default_limit: None,
        }
    }
/// Create a new endpoint.
///
/// `row_source` is where the data comes from. `base_uri`, if provided, should
/// be the wiremock server URI.
///
/// `base_uri` is only required because wiremock mangles the
/// request URL such that it's not possible to inspect it to see
/// how to give out other URLs on the same server; the port
/// number, which is usually random when mocking, is lost. Since
/// Django includes full absolute URLs for the next and preceding
/// pages for a query, mimicking this is impossible without more
/// information (i.e. including usable URLs for the next page
/// within the query response is impossible).
Create a new endpoint.
`row_source` is where the data comes from. `base_uri`, if provided, should
be the wiremock server URI.

`base_uri` is only required because wiremock mangles the
request URL such that it's not possible to inspect it to see
how to give out other URLs on the same server; the port
number, which is usually random when mocking, is lost. Since
Django includes full absolute URLs for the next and preceding
pages for a query, mimicking this is impossible without more
information .
Create a new endpoint . ` row_source ` is where the data comes from . ` base_uri ` if provided should be the wiremock server URI . ` base_uri ` is only required because wiremock mangles the request URL such that it ' s not possible to inspect it to see how to give out other URLs on the same server ; the port number which is usually random when mocking is lost . Since Django includes full absolute URLs for the next and preceding pages for a query mimicking this is impossible without more information .
pub fn new(row_source: T, base_uri: Option<&str>) -> Self {
        Self {
            row_source,
            base_uri: base_uri.map(|x| Url::parse(x).unwrap()),
            default_limit: None,
        }
    }
pub fn new ( row_source : T , base_uri : Option < & str > ) -> Self { Self { row_source , base_uri : base_uri . map ( | x | Url :: parse ( x ) . unwrap ( ) ) , default_limit : None , } }
Create a new endpoint.
Create a new endpoint .
row_source
T
base_uri
Option<&str>
row_source
T
base_uri
Option<&str>