pub trait RestClient { type Error: Error + Send + Sync + 'static; // Required method fn rest_endpoint( &self, endpoint: &str, ) -> Result<Url, ApiError<Self::Error>>; }