#[non_exhaustive]pub struct ListUsersRequest {
pub filter: Option<UserFilter>,
pub first: Option<i32>,
pub after: Option<String>,
pub include_disabled: Option<bool>,
}Expand description
Parameters for UsersService::list. Serialized directly as the
UserList query variables.
§Example
use linear_api::{StringComparator, UserFilter};
use linear_api::workspace::ListUsersRequest;
let req = ListUsersRequest::builder()
.filter(
UserFilter::builder()
.email(StringComparator::builder().eq("ada@example.com".to_string()).build())
.build(),
)
.build();Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.filter: Option<UserFilter>Filter the returned users.
first: Option<i32>Page size (server default 50).
after: Option<String>Cursor to paginate after (a previous page’s end_cursor).
include_disabled: Option<bool>Include disabled/suspended users (server default false).
Implementations§
Source§impl ListUsersRequest
impl ListUsersRequest
Sourcepub fn builder() -> ListUsersRequestBuilder
pub fn builder() -> ListUsersRequestBuilder
Create an instance of ListUsersRequest using the builder syntax
Trait Implementations§
Source§impl Clone for ListUsersRequest
impl Clone for ListUsersRequest
Source§fn clone(&self) -> ListUsersRequest
fn clone(&self) -> ListUsersRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ListUsersRequest
impl Debug for ListUsersRequest
Source§impl Default for ListUsersRequest
impl Default for ListUsersRequest
Source§fn default() -> ListUsersRequest
fn default() -> ListUsersRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListUsersRequest
impl RefUnwindSafe for ListUsersRequest
impl Send for ListUsersRequest
impl Sync for ListUsersRequest
impl Unpin for ListUsersRequest
impl UnsafeUnpin for ListUsersRequest
impl UnwindSafe for ListUsersRequest
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