[−][src]Trait gitlab::api::endpoint_prelude::Client
A trait representing a client which can communicate with a GitLab instance.
Associated Types
Loading content...Required methods
fn rest_endpoint(&self, endpoint: &str) -> Result<Url, ApiError<Self::Error>>
Get the URL for the endpoint for the client.
This method adds the hostname for the client's target instance.
fn build_rest(&self, method: Method, url: Url) -> RequestBuilder
Build a REST query from a URL and a given method.
fn rest(
&self,
request: RequestBuilder
) -> Result<Response, ApiError<Self::Error>>
&self,
request: RequestBuilder
) -> Result<Response, ApiError<Self::Error>>
Send a REST query.
Implementors
impl Client for Gitlab[src]
type Error = RestError
fn rest_endpoint(&self, endpoint: &str) -> Result<Url, ApiError<Self::Error>>[src]
fn build_rest(&self, method: Method, url: Url) -> RequestBuilder[src]
fn rest(
&self,
request: RequestBuilder
) -> Result<HttpResponse, ApiError<Self::Error>>[src]
&self,
request: RequestBuilder
) -> Result<HttpResponse, ApiError<Self::Error>>