pub struct OauthClient { /* private fields */ }Implementations§
Source§impl OauthClient
impl OauthClient
pub fn new( username: &str, apikey: &str, test: bool, ) -> Result<OauthClient, Error>
pub async fn get_scopes(&self, limit: bool) -> Result<String, Error>
pub async fn create_token( &self, scopes: Vec<&'static str>, ttl: u64, ) -> Result<String, Error>
pub async fn get_tokens(&self, scope: &'static str) -> Result<String, Error>
pub async fn delete_token(&self, id: String) -> Result<String, Error>
pub async fn get_counters( &self, period: &'static str, date: &'static str, ) -> Result<String, Error>
Auto Trait Implementations§
impl Freeze for OauthClient
impl !RefUnwindSafe for OauthClient
impl Send for OauthClient
impl Sync for OauthClient
impl Unpin for OauthClient
impl !UnwindSafe for OauthClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more