all repos — omglolrs @ 8adcaec9489fbf9660ddf82df000312347ef8ec5

A Rust wrapper for api.omg.lol.

WIP
Gil Poiares-Oliveira gil@poiares-oliveira.com
Tue, 02 May 2023 14:15:04 +0000
commit

8adcaec9489fbf9660ddf82df000312347ef8ec5

parent

98ced36454e81cb1de9323e9adc8762eb5621251

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/client.rssrc/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