pub struct UserList {
pub data: Vec<User>,
pub first_id: Option<String>,
pub last_id: Option<String>,
pub has_more: bool,
}Expand description
Response from the List Users API
Fields§
§data: Vec<User>List of users in the organization
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 UserList
impl UserList
Sourcepub fn builder() -> UserListBuilder
pub fn builder() -> UserListBuilder
Creates a builder for listing users.
§Example
let credentials = Credentials::from_env();
let users = UserList::builder()
.credentials(credentials)
.limit(10u32)
.create()
.await?;Sourcepub async fn create(request: UserListRequest) -> ApiResponseOrError<Self>
pub async fn create(request: UserListRequest) -> ApiResponseOrError<Self>
Lists users in the organization with the given request parameters.
§Example
let credentials = Credentials::from_env();
let request = UserListRequest {
before_id: None,
after_id: None,
limit: Some(20),
email: None,
credentials: Some(credentials),
};
let users = UserList::create(request).await?;Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserList
impl<'de> Deserialize<'de> for UserList
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
impl Eq for UserList
impl StructuralPartialEq for UserList
Auto Trait Implementations§
impl Freeze for UserList
impl RefUnwindSafe for UserList
impl Send for UserList
impl Sync for UserList
impl Unpin for UserList
impl UnwindSafe for UserList
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.