Gitlab API

This library implements an interface to communicate with a Gitlab instance. Not all API endpoints are implemented, but patches are welcome.

The API is based off of the GitLab 13.5 API v4 and will likely aggressively track new API additions, so not all available parameters or types will support arbitrarily old GitLab instances (usually query parameters will be ignored and type fields cause deserialization errors).

The endpoints that are supported all live under the api module. Each endpoint may be constructed using a "builder" pattern to provide supported fields. To use an endpoint, you may query it using the Query trait. There are additional helpers to handle different cases:

All endpoints return data types of the caller's choosing that implement serde's Deserialize trait. Callers should define their own structures for obtaining data from the API. This allows the structure to be more easily changeable for different GitLab versions (rather than this crate being pinned to a given version).

Versioning

Since this crate follows Gitlab upstream, semantic versioning may not be possible. Instead, the crate uses the following versioning scheme:

Minor versions may fix bugs, add API endpoint bindings, or improve webhook coverage. It is recommended to depend on the full version of the crate since types may change in patch-level updates in order to match Gitlab's interface:

toml gitlab = "=0.1305.1"

API bugs

Sometimes, the API will return null for fields that have been added after the entry was created. In these cases, mark the field as an Option with a comment describing why it is so.