pub struct AdminApi<'a, S: AuthSchema> { /* private fields */ }Expand description
Administrator operations bound to the registered plugin configuration. Dynamic URL policy resolves supplied host headers or the configured fallback before any writes.
Implementations§
Source§impl<'a, S: AuthSchema> AdminApi<'a, S>
impl<'a, S: AuthSchema> AdminApi<'a, S>
pub fn from_context(context: &'a AuthContext<S>) -> AuthResult<Self>
Sourcepub async fn create_user(
&self,
body: &CreateAdminUser,
headers: Option<&HashMap<String, String>>,
) -> AuthResult<AdminUserResponse<UserView>>
pub async fn create_user( &self, body: &CreateAdminUser, headers: Option<&HashMap<String, String>>, ) -> AuthResult<AdminUserResponse<UserView>>
Omit headers only for trusted server provisioning. Any supplied headers require a session.
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for AdminApi<'a, S>
impl<'a, S> !UnwindSafe for AdminApi<'a, S>
impl<'a, S> Freeze for AdminApi<'a, S>where
&'a AuthContext<S>: Freeze,
impl<'a, S> Send for AdminApi<'a, S>where
&'a AuthContext<S>: Send,
impl<'a, S> Sync for AdminApi<'a, S>where
&'a AuthContext<S>: Sync,
impl<'a, S> Unpin for AdminApi<'a, S>where
&'a AuthContext<S>: Unpin,
impl<'a, S> UnsafeUnpin for AdminApi<'a, S>where
&'a AuthContext<S>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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