allow multiple instances of gitlab to be configured
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::openproject::client::{handle_response_status, Client, Error};
|
||||
use crate::openproject::client::{handle_response_status, Client, OpenProjectError};
|
||||
use crate::openproject::hal::HalEntity;
|
||||
use serde::Deserialize;
|
||||
|
||||
@@ -22,11 +22,11 @@ pub struct Root {
|
||||
}
|
||||
|
||||
pub trait RootClient {
|
||||
async fn root(&self) -> Result<Root, Error>;
|
||||
async fn root(&self) -> Result<Root, OpenProjectError>;
|
||||
}
|
||||
|
||||
impl RootClient for Client {
|
||||
async fn root(&self) -> Result<Root, Error> {
|
||||
async fn root(&self) -> Result<Root, OpenProjectError> {
|
||||
let client = reqwest::Client::new();
|
||||
|
||||
let response = client
|
||||
|
Reference in New Issue
Block a user