pub struct TokenidClient<T> { /* private fields */ }
Implementations§
Source§impl<T> TokenidClient<T>where
T: Client,
impl<T> TokenidClient<T>where
T: Client,
Source§impl<T> TokenidClient<T>where
T: Client,
impl<T> TokenidClient<T>where
T: Client,
Source§impl<T> TokenidClient<T>where
T: Client,
impl<T> TokenidClient<T>where
T: Client,
Source§impl<T> TokenidClient<T>where
T: Client,
impl<T> TokenidClient<T>where
T: Client,
Sourcepub fn post(&self, params: PostParams) -> Result<PostOutput, T::Error>
pub fn post(&self, params: PostParams) -> Result<PostOutput, T::Error>
Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards!
Auto Trait Implementations§
impl<T> Freeze for TokenidClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for TokenidClient<T>where
T: RefUnwindSafe,
impl<T> Send for TokenidClient<T>where
T: Send,
impl<T> Sync for TokenidClient<T>where
T: Sync,
impl<T> Unpin for TokenidClient<T>where
T: Unpin,
impl<T> UnwindSafe for TokenidClient<T>where
T: UnwindSafe,
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