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::Link;
|
||||
use crate::openproject::root::RootClient;
|
||||
use serde::Deserialize;
|
||||
@@ -19,11 +19,11 @@ pub struct User {
|
||||
}
|
||||
|
||||
pub trait GetMe {
|
||||
async fn me(&self) -> Result<User, Error>;
|
||||
async fn me(&self) -> Result<User, OpenProjectError>;
|
||||
}
|
||||
|
||||
impl GetMe for Client {
|
||||
async fn me(&self) -> Result<User, Error> {
|
||||
async fn me(&self) -> Result<User, OpenProjectError> {
|
||||
let r = self.root().await?;
|
||||
let client = reqwest::Client::new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user