#[non_exhaustive]pub struct AdminAppsConfigSetRequest {
pub app_id: String,
pub workflow_auth_strategy: Option<String>,
pub rich_link_preview_type: Option<String>,
pub domain_restrictions: Option<Value>,
}Expand description
Arguments for the Slack Web API method admin.apps.config.set: Set the app config for a connector
Send it with SlackClient::admin_apps_config_set.
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: StringThe encoded app ID to set the app config for
workflow_auth_strategy: Option<String>The workflow auth permission. Can be one of builder_choice or end_user_only.
rich_link_preview_type: Option<String>Indicates the app-level override for rich link preview. Unsupported for free teams.
domain_restrictions: Option<Value>Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.
Implementations§
Source§impl AdminAppsConfigSetRequest
impl AdminAppsConfigSetRequest
pub fn new(app_id: impl Into<String>) -> Self
pub fn workflow_auth_strategy( self, workflow_auth_strategy: impl Into<String>, ) -> Self
pub fn rich_link_preview_type( self, rich_link_preview_type: impl Into<String>, ) -> Self
pub fn domain_restrictions(self, domain_restrictions: Value) -> Self
Trait Implementations§
Source§impl Clone for AdminAppsConfigSetRequest
impl Clone for AdminAppsConfigSetRequest
Source§impl Debug for AdminAppsConfigSetRequest
impl Debug for AdminAppsConfigSetRequest
impl StructuralPartialEq for AdminAppsConfigSetRequest
Auto Trait Implementations§
impl Freeze for AdminAppsConfigSetRequest
impl RefUnwindSafe for AdminAppsConfigSetRequest
impl Send for AdminAppsConfigSetRequest
impl Sync for AdminAppsConfigSetRequest
impl Unpin for AdminAppsConfigSetRequest
impl UnsafeUnpin for AdminAppsConfigSetRequest
impl UnwindSafe for AdminAppsConfigSetRequest
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