#[non_exhaustive]pub struct AdminAppsPermissionsAddRequest {
pub app_id: String,
pub user_ids: Option<Vec<String>>,
pub usergroup_ids: Option<Vec<String>>,
pub channel_ids: Option<Vec<String>>,
}Expand description
Arguments for the Slack Web API method admin.apps.permissions.add: Grant permission for entities to access an app that has its permission type set to named_entities.
Send it with SlackClient::admin_apps_permissions_add.
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.app_id: StringEncoded ID of the app
user_ids: Option<Vec<String>>List of user IDs to allow for named_entities visibility
usergroup_ids: Option<Vec<String>>List of encoded usergroup IDs
channel_ids: Option<Vec<String>>List of encoded channel IDs to add to the channel restriction list. Interpretation depends on the app’s channel_restriction_mode, which is configured via the admin.apps.permissions.set method.
Implementations§
Trait Implementations§
impl StructuralPartialEq for AdminAppsPermissionsAddRequest
Auto Trait Implementations§
impl Freeze for AdminAppsPermissionsAddRequest
impl RefUnwindSafe for AdminAppsPermissionsAddRequest
impl Send for AdminAppsPermissionsAddRequest
impl Sync for AdminAppsPermissionsAddRequest
impl Unpin for AdminAppsPermissionsAddRequest
impl UnsafeUnpin for AdminAppsPermissionsAddRequest
impl UnwindSafe for AdminAppsPermissionsAddRequest
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