pub struct AuthApi { /* private fields */ }Expand description
The endpoints, over one store.
Implementations§
Source§impl AuthApi
impl AuthApi
Sourcepub fn new(store: Arc<AuthStore>, cfg: ApiConfig) -> Result<AuthApi, AuthError>
pub fn new(store: Arc<AuthStore>, cfg: ApiConfig) -> Result<AuthApi, AuthError>
Build the endpoints. While no user exists, this mints the one-time
setup token and writes it to cfg.setup_token_file.
pub fn store(&self) -> &Arc<AuthStore> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AuthApi
impl !RefUnwindSafe for AuthApi
impl !UnwindSafe for AuthApi
impl Send for AuthApi
impl Sync for AuthApi
impl Unpin for AuthApi
impl UnsafeUnpin for AuthApi
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