Files
vrchatapi-rust/patches/Adjustable-Client.rs
2024-05-15 00:13:40 +02:00

10 lines
306 B
Rust

#[derive(Debug)]
struct ClientWrapper(reqwest::Client);
impl std::ops::Deref for ClientWrapper{
type Target = reqwest::Client;
fn deref(&self) -> &Self::Target {
&self.0
}
}
pub trait Client: std::ops::Deref + std::fmt::Debug {}
impl<T:std::ops::Deref + std::fmt::Debug> Client for T {}