pub struct WorkspaceMembers<'a> { /* private fields */ }Available on crate feature
admin only.Expand description
Namespace handle for workspace-member endpoints. Scoped to a single workspace at construction time.
Implementations§
Source§impl<'a> WorkspaceMembers<'a>
impl<'a> WorkspaceMembers<'a>
Sourcepub async fn create(
&self,
request: CreateWorkspaceMemberRequest,
) -> Result<WorkspaceMember>
pub async fn create( &self, request: CreateWorkspaceMemberRequest, ) -> Result<WorkspaceMember>
POST /v1/organizations/workspaces/{ws}/members.
Sourcepub async fn retrieve(&self, user_id: &str) -> Result<WorkspaceMember>
pub async fn retrieve(&self, user_id: &str) -> Result<WorkspaceMember>
GET /v1/organizations/workspaces/{ws}/members/{user}.
Sourcepub async fn list(
&self,
params: ListParams,
) -> Result<Paginated<WorkspaceMember>>
pub async fn list( &self, params: ListParams, ) -> Result<Paginated<WorkspaceMember>>
GET /v1/organizations/workspaces/{ws}/members.
Sourcepub async fn update(
&self,
user_id: &str,
request: UpdateWorkspaceMemberRequest,
) -> Result<WorkspaceMember>
pub async fn update( &self, user_id: &str, request: UpdateWorkspaceMemberRequest, ) -> Result<WorkspaceMember>
POST /v1/organizations/workspaces/{ws}/members/{user} (update).
Sourcepub async fn delete(&self, user_id: &str) -> Result<WorkspaceMemberDeleted>
pub async fn delete(&self, user_id: &str) -> Result<WorkspaceMemberDeleted>
DELETE /v1/organizations/workspaces/{ws}/members/{user}.
Auto Trait Implementations§
impl<'a> Freeze for WorkspaceMembers<'a>
impl<'a> !RefUnwindSafe for WorkspaceMembers<'a>
impl<'a> Send for WorkspaceMembers<'a>
impl<'a> Sync for WorkspaceMembers<'a>
impl<'a> Unpin for WorkspaceMembers<'a>
impl<'a> UnsafeUnpin for WorkspaceMembers<'a>
impl<'a> !UnwindSafe for WorkspaceMembers<'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.