Skip to main content

Module version

Module version 

Source
Expand description

TEA API version selection.

Advertised versions are SemVer 2.0.0. Build metadata does not affect precedence or whether a client supports a version. The selected path uses the advertised spelling exactly, including build metadata.

Structs§

ApiVersion
One advertised API version, preserving the wire spelling.
OrderedPriority
Finite priority in the closed range 0..=1, stored as bits so it can be ordered.
SelectedEndpoint
Chosen endpoint after version negotiation.
SupportedApi
A version the client implements.
VersionedEndpoint
One candidate API base before selection.

Functions§

select_endpoints
Select candidate endpoints in the order a client should try them.
versioned_api_prefix
Build {root}/v{version}/ without encoding + in build metadata.