#[non_exhaustive]pub struct AdminRolesAddAssignmentsRequest {
pub role_id: String,
pub entity_ids: Vec<String>,
pub user_ids: Vec<String>,
}Expand description
Arguments for the Slack Web API method admin.roles.addAssignments: Adds members to the specified role with the specified scopes
Send it with SlackClient::admin_roles_add_assignments.
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.role_id: StringID of the role to which users will be assigned
entity_ids: Vec<String>List of the entity IDs for which roles will be assigned. These can be Org IDs, Team IDs or Channel IDs
user_ids: Vec<String>List of IDs from the users to be added to the given role
Implementations§
Trait Implementations§
impl StructuralPartialEq for AdminRolesAddAssignmentsRequest
Auto Trait Implementations§
impl Freeze for AdminRolesAddAssignmentsRequest
impl RefUnwindSafe for AdminRolesAddAssignmentsRequest
impl Send for AdminRolesAddAssignmentsRequest
impl Sync for AdminRolesAddAssignmentsRequest
impl Unpin for AdminRolesAddAssignmentsRequest
impl UnsafeUnpin for AdminRolesAddAssignmentsRequest
impl UnwindSafe for AdminRolesAddAssignmentsRequest
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