pub struct AdminAuthClient { /* private fields */ }Expand description
Server-side user management — requires Service Key.
Implementations§
Source§impl AdminAuthClient
impl AdminAuthClient
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn get_user( &self, user_id: &str, ) -> Result<HashMap<String, Value>, Error>
Sourcepub async fn list_users(
&self,
limit: u32,
cursor: Option<&str>,
) -> Result<Value, Error>
pub async fn list_users( &self, limit: u32, cursor: Option<&str>, ) -> Result<Value, Error>
List users with pagination. cursor is the ID of the last user from the previous page.
pub async fn create_user( &self, email: &str, password: &str, ) -> Result<HashMap<String, Value>, Error>
pub async fn update_user( &self, user_id: &str, data: &Value, ) -> Result<HashMap<String, Value>, Error>
pub async fn delete_user(&self, user_id: &str) -> Result<(), Error>
Sourcepub async fn set_custom_claims(
&self,
user_id: &str,
claims: Value,
) -> Result<(), Error>
pub async fn set_custom_claims( &self, user_id: &str, claims: Value, ) -> Result<(), Error>
Set custom JWT claims for a user. Server uses PUT.
Auto Trait Implementations§
impl Freeze for AdminAuthClient
impl !RefUnwindSafe for AdminAuthClient
impl Send for AdminAuthClient
impl Sync for AdminAuthClient
impl Unpin for AdminAuthClient
impl UnsafeUnpin for AdminAuthClient
impl !UnwindSafe for AdminAuthClient
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