pub struct ProjectUsersClient { /* private fields */ }Expand description
Client for ACC Project Users API
Provides operations for managing users within individual projects.
Implementations§
Source§impl ProjectUsersClient
impl ProjectUsersClient
Sourcepub fn new(config: Config, auth: AuthClient) -> Self
pub fn new(config: Config, auth: AuthClient) -> Self
Create a new Project Users client
Sourcepub fn new_with_http_config(
config: Config,
auth: AuthClient,
http_config: HttpClientConfig,
) -> Self
pub fn new_with_http_config( config: Config, auth: AuthClient, http_config: HttpClientConfig, ) -> Self
Create client with custom HTTP configuration
Sourcepub async fn list_project_users(
&self,
project_id: &str,
limit: Option<usize>,
offset: Option<usize>,
) -> Result<PaginatedResponse<ProjectUser>>
pub async fn list_project_users( &self, project_id: &str, limit: Option<usize>, offset: Option<usize>, ) -> Result<PaginatedResponse<ProjectUser>>
List members of a project (paginated)
§Arguments
project_id- The project IDlimit- Maximum results per page (max: 200)offset- Starting index
Sourcepub async fn get_project_user(
&self,
project_id: &str,
user_id: &str,
) -> Result<ProjectUser>
pub async fn get_project_user( &self, project_id: &str, user_id: &str, ) -> Result<ProjectUser>
Get a specific user’s membership in a project
§Arguments
project_id- The project IDuser_id- The user ID
Sourcepub async fn add_user(
&self,
project_id: &str,
request: AddProjectUserRequest,
) -> Result<ProjectUser>
pub async fn add_user( &self, project_id: &str, request: AddProjectUserRequest, ) -> Result<ProjectUser>
Sourcepub async fn update_user(
&self,
project_id: &str,
user_id: &str,
request: UpdateProjectUserRequest,
) -> Result<ProjectUser>
pub async fn update_user( &self, project_id: &str, user_id: &str, request: UpdateProjectUserRequest, ) -> Result<ProjectUser>
Update a user’s role or product access in a project
§Arguments
project_id- The project IDuser_id- The user ID to updaterequest- Update request with new role or products
Sourcepub async fn list_all_project_users(
&self,
project_id: &str,
) -> Result<Vec<ProjectUser>>
pub async fn list_all_project_users( &self, project_id: &str, ) -> Result<Vec<ProjectUser>>
Fetch all users in a project (handles pagination automatically)
Sourcepub async fn import_users(
&self,
project_id: &str,
users: Vec<ImportUserRequest>,
) -> Result<ImportUsersResult>
pub async fn import_users( &self, project_id: &str, users: Vec<ImportUserRequest>, ) -> Result<ImportUsersResult>
Import multiple users to a project concurrently
Adds each user individually via concurrent requests bounded by a semaphore (max 10 concurrent) for rate-limit safety. Collects per-user results.
§Arguments
project_id- The project IDusers- List of users to import
§Returns
An ImportUsersResult containing the overall summary and individual results
Trait Implementations§
Source§impl Clone for ProjectUsersClient
impl Clone for ProjectUsersClient
Source§fn clone(&self) -> ProjectUsersClient
fn clone(&self) -> ProjectUsersClient
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ProjectUsersClient
impl !RefUnwindSafe for ProjectUsersClient
impl Send for ProjectUsersClient
impl Sync for ProjectUsersClient
impl Unpin for ProjectUsersClient
impl UnsafeUnpin for ProjectUsersClient
impl !UnwindSafe for ProjectUsersClient
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