pub struct DevAuth { /* private fields */ }
Expand description
Developer token authentication. This is used for testing and development. Has a life time of 1 hour, and has to be manually generated in the Box developer console.
Implementations§
Trait Implementations§
Source§impl<'a> Auth<'a> for DevAuth
impl<'a> Auth<'a> for DevAuth
fn access_token<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn to_json<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn base_api_url(&self) -> String
fn user_agent(&self) -> String
Auto Trait Implementations§
impl Freeze for DevAuth
impl RefUnwindSafe for DevAuth
impl Send for DevAuth
impl Sync for DevAuth
impl Unpin for DevAuth
impl UnwindSafe for DevAuth
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