Expand description
Fetches time logs and related data from the GitLab API.
Re-exportsยง
pub use fetch_options::FetchOptions;
Modulesยง
- api_
model ๐ - Structs for deserializing the JSON response from the GitLab API
- deserializer ๐
- Contains custom deserializer logic for the items from the GitLab API.
- fetch_
options ๐ - Data structure with settings for accessing the GitLab API.
- http_
requests ๐ - This module is an abstraction of the
reqwestAPI so dependency injection can be used for unit and integration tests.
Enumsยง
- Query
Error - Errors that can occur during an API query.
Functionsยง
- build_
query_ ๐payload - Builds a GraphQL query with the given project path and optional cursor for pagination.
- fetch_
project_ time_ logs - Fetches the project time logs from the GitLab API.
A valid access token is required for internal and private projects.
To call the function, create a
FetchOptionsinstance withFetchOptions::new(). - fetch_
project_ ๐time_ logs_ impl - Implementation of
fetch_project_time_logs()that takesFetchOptionsand an HTTP client as parameter. - run_
query ๐ - Runs a query against the GitLab API and returns the response as a string. Parsing the response
is up to the caller.
If there is an error, the function returns a
QueryError.