WIP
Gil Poiares-Oliveira gil@poiares-oliveira.com
Tue, 02 May 2023 14:15:04 +0000
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/client.rs
→
src/client.rs
@@ -26,10 +26,14 @@ );
pub(crate) use api_endpoint; +struct Auth; +struct NoAuth; + #[derive(Clone)] -pub struct OmglolClient { +pub struct OmglolClient<State = NoAuth> { client: Client, api_key: Option<String>, + state: std::marker::PhantomData<State>, } /// OmglolClient allows you to make authenticated or unauthenticated REST API