pub struct WorkspaceMemberList {
pub data: Vec<WorkspaceMember>,
pub first_id: Option<String>,
pub last_id: Option<String>,
pub has_more: bool,
}Expand description
Response from the List Workspace Members API.
Fields§
§data: Vec<WorkspaceMember>List of workspace members
first_id: Option<String>First ID in the data list (for pagination)
last_id: Option<String>Last ID in the data list (for pagination)
has_more: boolIndicates if there are more results in the requested page direction
Implementations§
Source§impl WorkspaceMemberList
impl WorkspaceMemberList
Sourcepub fn builder(workspace_id: impl Into<String>) -> WorkspaceMemberListBuilder
pub fn builder(workspace_id: impl Into<String>) -> WorkspaceMemberListBuilder
Creates a builder for listing workspace members.
§Example
let credentials = Credentials::from_env();
let members = WorkspaceMemberList::builder("workspace_123456789")
.credentials(credentials)
.limit(10u32)
.create()
.await?;Sourcepub async fn create(
request: WorkspaceMemberListRequest,
) -> ApiResponseOrError<Self>
pub async fn create( request: WorkspaceMemberListRequest, ) -> ApiResponseOrError<Self>
Lists workspace members with the given request parameters.
§Example
let credentials = Credentials::from_env();
let request = WorkspaceMemberListRequest {
workspace_id: "workspace_123456789".to_string(),
before_id: None,
after_id: None,
limit: Some(20),
credentials: Some(credentials),
};
let members = WorkspaceMemberList::create(request).await?;Trait Implementations§
Source§impl Clone for WorkspaceMemberList
impl Clone for WorkspaceMemberList
Source§fn clone(&self) -> WorkspaceMemberList
fn clone(&self) -> WorkspaceMemberList
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceMemberList
impl Debug for WorkspaceMemberList
Source§impl<'de> Deserialize<'de> for WorkspaceMemberList
impl<'de> Deserialize<'de> for WorkspaceMemberList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkspaceMemberList
impl PartialEq for WorkspaceMemberList
impl Eq for WorkspaceMemberList
impl StructuralPartialEq for WorkspaceMemberList
Auto Trait Implementations§
impl Freeze for WorkspaceMemberList
impl RefUnwindSafe for WorkspaceMemberList
impl Send for WorkspaceMemberList
impl Sync for WorkspaceMemberList
impl Unpin for WorkspaceMemberList
impl UnwindSafe for WorkspaceMemberList
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.