Crate trakt_core

Source

Modules§

error
Error types for the API.

Structs§

Context
Represents the universal context for an API request.
EmojiString
A string that deserializes strings containing emoji shortcodes into their respective unicode characters.
Metadata
Represents metadata for an API endpoint.
Pagination
Pagination struct is used to specify the page number and the maximum number of items to be shown per page.
PaginationResponse
PaginationResponse struct is used to store the paginated response from the API.

Enums§

AuthRequirement
Authorization requirement for an API request.

Traits§

PaginatedResponse
A sub-trait of Response for paginated responses.
Request
Trait for requests.
Response
A trait for converting an HTTP response into a result of Self.

Functions§

construct_req
Helper function to construct an HTTP request using the given context, metadata, and path/query/body values.
construct_url
Constructs a complete URL from a base URL, an endpoint, and parameters.
handle_response_body
Helper function to handle the response body from the API.
parse_from_header
Helper function to parse a header value to an integer.