Skip to main content

select_endpoints

Function select_endpoints 

Source
pub fn select_endpoints(
    endpoints: &[VersionedEndpoint],
    supported: &SupportedApi,
) -> Result<Vec<SelectedEndpoint>, ModelError>
Expand description

Select candidate endpoints in the order a client should try them.

The order is the highest mutually supported SemVer precedence, then the highest priority, then the original document index. Within one endpoint, tied build-metadata spellings keep the first advertised string.

ยงErrors

Returns an error when no endpoint advertises a supported version.