Crate trakt_core
source ·Modules§
- Error types for the API.
Structs§
- Represents the universal context for an API request.
- A string that deserializes strings containing emoji shortcodes into their respective unicode characters.
- Represents metadata for an API endpoint.
Pagination
struct is used to specify the page number and the maximum number of items to be shown per page.PaginationResponse
struct is used to store the paginated response from the API.
Enums§
- Authorization requirement for an API request.
Traits§
- A sub-trait of
Response
for paginated responses. - Trait for requests.
- A trait for converting an HTTP response into a result of
Self
.
Functions§
- Helper function to construct an HTTP request using the given context, metadata, and path/query/body values.
- Constructs a complete URL from a base URL, an endpoint, and parameters.
- Helper function to handle the response body from the API.
- Helper function to parse a header value to an integer.