pub struct Users<'a> { /* private fields */ }Available on crate feature
admin only.Expand description
Namespace handle for user endpoints.
Implementations§
Source§impl<'a> Users<'a>
impl<'a> Users<'a>
Sourcepub async fn list(&self, params: ListUsersParams) -> Result<Paginated<User>>
pub async fn list(&self, params: ListUsersParams) -> Result<Paginated<User>>
GET /v1/organizations/users.
Sourcepub async fn update(
&self,
user_id: &str,
request: UpdateUserRequest,
) -> Result<User>
pub async fn update( &self, user_id: &str, request: UpdateUserRequest, ) -> Result<User>
POST /v1/organizations/users/{id} (update role).
Sourcepub async fn delete(&self, user_id: &str) -> Result<UserDeleted>
pub async fn delete(&self, user_id: &str) -> Result<UserDeleted>
DELETE /v1/organizations/users/{id}.
Auto Trait Implementations§
impl<'a> Freeze for Users<'a>
impl<'a> !RefUnwindSafe for Users<'a>
impl<'a> Send for Users<'a>
impl<'a> Sync for Users<'a>
impl<'a> Unpin for Users<'a>
impl<'a> UnsafeUnpin for Users<'a>
impl<'a> !UnwindSafe for Users<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.