Crate trakt_core
Source - error
- Error types for the API.
- 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.
- AuthRequirement
- Authorization requirement for an API request.
- 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
.
- 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.