Trait gitlab::api::RestClient
source · pub trait RestClient {
type Error: Error + Send + Sync + 'static;
// Required method
fn rest_endpoint(
&self,
endpoint: &str
) -> Result<Url, ApiError<Self::Error>>;
// Provided method
fn instance_endpoint(
&self,
endpoint: &str
) -> Result<Url, ApiError<Self::Error>> { ... }
}
Expand description
A trait representing a client which can communicate with a GitLab instance via REST.