pub struct SlackAppManifestSettings {
pub allowed_ip_address_ranges: Option<Vec<String>>,
pub event_subscriptions: Option<SlackAppManifestSettingsEventSubscriptions>,
pub interactivity: Option<SlackAppManifestSettingsInteractivity>,
pub org_deploy_enabled: Option<bool>,
pub socket_mode_enabled: Option<bool>,
}Fields§
§allowed_ip_address_ranges: Option<Vec<String>>§event_subscriptions: Option<SlackAppManifestSettingsEventSubscriptions>§interactivity: Option<SlackAppManifestSettingsInteractivity>§org_deploy_enabled: Option<bool>§socket_mode_enabled: Option<bool>Implementations§
Source§impl SlackAppManifestSettings
impl SlackAppManifestSettings
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackAppManifestSettings from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn allowed_ip_address_ranges(&mut self, value: Vec<String>) -> &mut Self
pub fn allowed_ip_address_ranges(&mut self, value: Vec<String>) -> &mut Self
Sets allowed_ip_address_ranges to Some(value).
Sourcepub fn reset_allowed_ip_address_ranges(&mut self) -> &mut Self
pub fn reset_allowed_ip_address_ranges(&mut self) -> &mut Self
Sets allowed_ip_address_ranges to None.
Sourcepub fn mopt_allowed_ip_address_ranges(
&mut self,
value: Option<Vec<String>>,
) -> &mut Self
pub fn mopt_allowed_ip_address_ranges( &mut self, value: Option<Vec<String>>, ) -> &mut Self
Sets allowed_ip_address_ranges to the given Option.
Sourcepub fn with_allowed_ip_address_ranges(self, value: Vec<String>) -> Self
pub fn with_allowed_ip_address_ranges(self, value: Vec<String>) -> Self
Returns self with allowed_ip_address_ranges set to Some(value).
Sourcepub fn without_allowed_ip_address_ranges(self) -> Self
pub fn without_allowed_ip_address_ranges(self) -> Self
Returns self with allowed_ip_address_ranges set to None.
Sourcepub fn opt_allowed_ip_address_ranges(self, value: Option<Vec<String>>) -> Self
pub fn opt_allowed_ip_address_ranges(self, value: Option<Vec<String>>) -> Self
Returns self with allowed_ip_address_ranges set to the given Option.
Sourcepub fn event_subscriptions(
&mut self,
value: SlackAppManifestSettingsEventSubscriptions,
) -> &mut Self
pub fn event_subscriptions( &mut self, value: SlackAppManifestSettingsEventSubscriptions, ) -> &mut Self
Sets event_subscriptions to Some(value).
Sourcepub fn reset_event_subscriptions(&mut self) -> &mut Self
pub fn reset_event_subscriptions(&mut self) -> &mut Self
Sets event_subscriptions to None.
Sourcepub fn mopt_event_subscriptions(
&mut self,
value: Option<SlackAppManifestSettingsEventSubscriptions>,
) -> &mut Self
pub fn mopt_event_subscriptions( &mut self, value: Option<SlackAppManifestSettingsEventSubscriptions>, ) -> &mut Self
Sets event_subscriptions to the given Option.
Sourcepub fn with_event_subscriptions(
self,
value: SlackAppManifestSettingsEventSubscriptions,
) -> Self
pub fn with_event_subscriptions( self, value: SlackAppManifestSettingsEventSubscriptions, ) -> Self
Returns self with event_subscriptions set to Some(value).
Sourcepub fn without_event_subscriptions(self) -> Self
pub fn without_event_subscriptions(self) -> Self
Returns self with event_subscriptions set to None.
Sourcepub fn opt_event_subscriptions(
self,
value: Option<SlackAppManifestSettingsEventSubscriptions>,
) -> Self
pub fn opt_event_subscriptions( self, value: Option<SlackAppManifestSettingsEventSubscriptions>, ) -> Self
Returns self with event_subscriptions set to the given Option.
Sourcepub fn interactivity(
&mut self,
value: SlackAppManifestSettingsInteractivity,
) -> &mut Self
pub fn interactivity( &mut self, value: SlackAppManifestSettingsInteractivity, ) -> &mut Self
Sets interactivity to Some(value).
Sourcepub fn reset_interactivity(&mut self) -> &mut Self
pub fn reset_interactivity(&mut self) -> &mut Self
Sets interactivity to None.
Sourcepub fn mopt_interactivity(
&mut self,
value: Option<SlackAppManifestSettingsInteractivity>,
) -> &mut Self
pub fn mopt_interactivity( &mut self, value: Option<SlackAppManifestSettingsInteractivity>, ) -> &mut Self
Sets interactivity to the given Option.
Sourcepub fn with_interactivity(
self,
value: SlackAppManifestSettingsInteractivity,
) -> Self
pub fn with_interactivity( self, value: SlackAppManifestSettingsInteractivity, ) -> Self
Returns self with interactivity set to Some(value).
Sourcepub fn without_interactivity(self) -> Self
pub fn without_interactivity(self) -> Self
Returns self with interactivity set to None.
Sourcepub fn opt_interactivity(
self,
value: Option<SlackAppManifestSettingsInteractivity>,
) -> Self
pub fn opt_interactivity( self, value: Option<SlackAppManifestSettingsInteractivity>, ) -> Self
Returns self with interactivity set to the given Option.
Sourcepub fn org_deploy_enabled(&mut self, value: bool) -> &mut Self
pub fn org_deploy_enabled(&mut self, value: bool) -> &mut Self
Sets org_deploy_enabled to Some(value).
Sourcepub fn reset_org_deploy_enabled(&mut self) -> &mut Self
pub fn reset_org_deploy_enabled(&mut self) -> &mut Self
Sets org_deploy_enabled to None.
Sourcepub fn mopt_org_deploy_enabled(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_org_deploy_enabled(&mut self, value: Option<bool>) -> &mut Self
Sets org_deploy_enabled to the given Option.
Sourcepub fn with_org_deploy_enabled(self, value: bool) -> Self
pub fn with_org_deploy_enabled(self, value: bool) -> Self
Returns self with org_deploy_enabled set to Some(value).
Sourcepub fn without_org_deploy_enabled(self) -> Self
pub fn without_org_deploy_enabled(self) -> Self
Returns self with org_deploy_enabled set to None.
Sourcepub fn opt_org_deploy_enabled(self, value: Option<bool>) -> Self
pub fn opt_org_deploy_enabled(self, value: Option<bool>) -> Self
Returns self with org_deploy_enabled set to the given Option.
Sourcepub fn socket_mode_enabled(&mut self, value: bool) -> &mut Self
pub fn socket_mode_enabled(&mut self, value: bool) -> &mut Self
Sets socket_mode_enabled to Some(value).
Sourcepub fn reset_socket_mode_enabled(&mut self) -> &mut Self
pub fn reset_socket_mode_enabled(&mut self) -> &mut Self
Sets socket_mode_enabled to None.
Sourcepub fn mopt_socket_mode_enabled(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_socket_mode_enabled(&mut self, value: Option<bool>) -> &mut Self
Sets socket_mode_enabled to the given Option.
Sourcepub fn with_socket_mode_enabled(self, value: bool) -> Self
pub fn with_socket_mode_enabled(self, value: bool) -> Self
Returns self with socket_mode_enabled set to Some(value).
Sourcepub fn without_socket_mode_enabled(self) -> Self
pub fn without_socket_mode_enabled(self) -> Self
Returns self with socket_mode_enabled set to None.
Sourcepub fn opt_socket_mode_enabled(self, value: Option<bool>) -> Self
pub fn opt_socket_mode_enabled(self, value: Option<bool>) -> Self
Returns self with socket_mode_enabled set to the given Option.