#[non_exhaustive]pub struct AdminBarriersCreateRequest {
pub primary_usergroup_id: String,
pub barriered_from_usergroup_ids: Vec<String>,
pub restricted_subjects: Vec<Value>,
}Expand description
Arguments for the Slack Web API method admin.barriers.create: Create an Information Barrier
Send it with SlackClient::admin_barriers_create.
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.primary_usergroup_id: StringThe id of the primary IDP Group
barriered_from_usergroup_ids: Vec<String>A list of IDP Groups ids that the primary usergroup is to be barriered from.
restricted_subjects: Vec<Value>What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg im, mpim, call
Implementations§
Trait Implementations§
Source§impl Clone for AdminBarriersCreateRequest
impl Clone for AdminBarriersCreateRequest
Source§impl Debug for AdminBarriersCreateRequest
impl Debug for AdminBarriersCreateRequest
impl StructuralPartialEq for AdminBarriersCreateRequest
Auto Trait Implementations§
impl Freeze for AdminBarriersCreateRequest
impl RefUnwindSafe for AdminBarriersCreateRequest
impl Send for AdminBarriersCreateRequest
impl Sync for AdminBarriersCreateRequest
impl Unpin for AdminBarriersCreateRequest
impl UnsafeUnpin for AdminBarriersCreateRequest
impl UnwindSafe for AdminBarriersCreateRequest
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