pub struct RealmIncomingWebhookBot { /* private fields */ }Expand description
Represents details of the incoming webhook bot.
Modified from openapi-generator-cli output:
$ openapi-generator-cli generate -g rust -i ./zerver/openapi/zulip.yaml -o zulip-openapi --skip-validate-spec/*
* Zulip REST API
*
* Powerful open source group chat
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/See zerver/openapi/zulip.yaml for the original OpenAPI configuration.
Configuration slightly modified to work with the Rust generator of openapi-generator-cli.
Implementations§
Source§impl RealmIncomingWebhookBot
impl RealmIncomingWebhookBot
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the RealmIncomingWebhookBot name.
A machine-readable unique name identifying the integration, all-lower-case without spaces.
Sourcepub fn set_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmIncomingWebhookBot name.
A machine-readable unique name identifying the integration, all-lower-case without spaces.
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the RealmIncomingWebhookBot name.
A machine-readable unique name identifying the integration, all-lower-case without spaces.
Sourcepub fn with_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmIncomingWebhookBot name.
A machine-readable unique name identifying the integration, all-lower-case without spaces.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Gets the RealmIncomingWebhookBot display_name.
A human-readable display name identifying the integration that this bot implements, intended to be used in menus for selecting which integration to create.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn set_display_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_display_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmIncomingWebhookBot display_name.
A human-readable display name identifying the integration that this bot implements, intended to be used in menus for selecting which integration to create.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn unset_display_name(&mut self) -> Option<String>
pub fn unset_display_name(&mut self) -> Option<String>
Unsets the RealmIncomingWebhookBot display_name.
A human-readable display name identifying the integration that this bot implements, intended to be used in menus for selecting which integration to create.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn with_display_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_display_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmIncomingWebhookBot display_name.
A human-readable display name identifying the integration that this bot implements, intended to be used in menus for selecting which integration to create.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn all_event_types(&self) -> Option<&[String]>
pub fn all_event_types(&self) -> Option<&[String]>
Gets the RealmIncomingWebhookBot all_event_types.
For incoming webhook integrations that support the Zulip server filtering incoming events, the list of event types supported by it.
A null value will be present if this incoming webhook integration doesn’t support such filtering.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn set_all_event_types<'a, C: Into<Cow<'a, [String]>>>(&mut self, val: C)
pub fn set_all_event_types<'a, C: Into<Cow<'a, [String]>>>(&mut self, val: C)
Sets the RealmIncomingWebhookBot all_event_types.
For incoming webhook integrations that support the Zulip server filtering incoming events, the list of event types supported by it.
A null value will be present if this incoming webhook integration doesn’t support such filtering.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn unset_all_event_types(&mut self) -> Option<Vec<String>>
pub fn unset_all_event_types(&mut self) -> Option<Vec<String>>
Unsets the RealmIncomingWebhookBot all_event_types.
For incoming webhook integrations that support the Zulip server filtering incoming events, the list of event types supported by it.
A null value will be present if this incoming webhook integration doesn’t support such filtering.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn with_all_event_types<'a, C: Into<Cow<'a, [String]>>>(
self,
val: C,
) -> Self
pub fn with_all_event_types<'a, C: Into<Cow<'a, [String]>>>( self, val: C, ) -> Self
Builder function that sets the RealmIncomingWebhookBot all_event_types.
For incoming webhook integrations that support the Zulip server filtering incoming events, the list of event types supported by it.
A null value will be present if this incoming webhook integration doesn’t support such filtering.
Changes: New in Zulip 8.0 (feature level 207).
Sourcepub fn config_options(&self) -> Option<&[WebhookConfigOption]>
pub fn config_options(&self) -> Option<&[WebhookConfigOption]>
Gets the RealmIncomingWebhookBot config_options.
An array of configuration options that can be set when creating a bot user for this incoming webhook integration.
This is an unstable API. Please discuss in chat.zulip.org before using it.
Changes: As of Zulip 11.0 (feature level 403), this object is reserved for integration-specific configuration options that can be set when creating a bot user.
Previously, this object also included optional webhook URL parameters, which are now specified in the url_options object. Before Zulip 10.0 (feature level 318),
this field was named config, and was reserved for configuration data key-value pairs.
Sourcepub fn set_config_options<'a, C: Into<Cow<'a, [WebhookConfigOption]>>>(
&mut self,
val: C,
)
pub fn set_config_options<'a, C: Into<Cow<'a, [WebhookConfigOption]>>>( &mut self, val: C, )
Sets the RealmIncomingWebhookBot config_options.
An array of configuration options that can be set when creating a bot user for this incoming webhook integration.
This is an unstable API. Please discuss in chat.zulip.org before using it.
Changes: As of Zulip 11.0 (feature level 403), this object is reserved for integration-specific configuration options that can be set when creating a bot user.
Previously, this object also included optional webhook URL parameters, which are now specified in the url_options object. Before Zulip 10.0 (feature level 318),
this field was named config, and was reserved for configuration data key-value pairs.
Sourcepub fn unset_config_options(&mut self) -> Option<Vec<WebhookConfigOption>>
pub fn unset_config_options(&mut self) -> Option<Vec<WebhookConfigOption>>
Unsets the RealmIncomingWebhookBot config_options.
An array of configuration options that can be set when creating a bot user for this incoming webhook integration.
This is an unstable API. Please discuss in chat.zulip.org before using it.
Changes: As of Zulip 11.0 (feature level 403), this object is reserved for integration-specific configuration options that can be set when creating a bot user.
Previously, this object also included optional webhook URL parameters, which are now specified in the url_options object. Before Zulip 10.0 (feature level 318),
this field was named config, and was reserved for configuration data key-value pairs.
Sourcepub fn with_config_options<'a, C: Into<Cow<'a, [WebhookConfigOption]>>>(
self,
val: C,
) -> Self
pub fn with_config_options<'a, C: Into<Cow<'a, [WebhookConfigOption]>>>( self, val: C, ) -> Self
Builder function that sets the RealmIncomingWebhookBot config_options.
An array of configuration options that can be set when creating a bot user for this incoming webhook integration.
This is an unstable API. Please discuss in chat.zulip.org before using it.
Changes: As of Zulip 11.0 (feature level 403), this object is reserved for integration-specific configuration options that can be set when creating a bot user.
Previously, this object also included optional webhook URL parameters, which are now specified in the url_options object. Before Zulip 10.0 (feature level 318),
this field was named config, and was reserved for configuration data key-value pairs.
Sourcepub fn url_options(&self) -> Option<&[WebhookUrlOption]>
pub fn url_options(&self) -> Option<&[WebhookUrlOption]>
Gets the RealmIncomingWebhookBot url_options.
An array of optional URL parameter options for the incoming webhook integration.
In the web app, these are used when generating a URL for an integration.
This is an unstable API expected to be used only by the Zulip web app. Please discuss in chat.zulip.org before using it.
Changes: New in Zulip 11.0 (feature level 403). Previously, these optional URL parameter options were included in the config_options object.
Sourcepub fn set_url_options<'a, C: Into<Cow<'a, [WebhookUrlOption]>>>(
&mut self,
val: C,
)
pub fn set_url_options<'a, C: Into<Cow<'a, [WebhookUrlOption]>>>( &mut self, val: C, )
Sets the RealmIncomingWebhookBot url_options.
An array of optional URL parameter options for the incoming webhook integration.
In the web app, these are used when generating a URL for an integration.
This is an unstable API expected to be used only by the Zulip web app. Please discuss in chat.zulip.org before using it.
Changes: New in Zulip 11.0 (feature level 403). Previously, these optional URL parameter options were included in the config_options object.
Sourcepub fn unset_url_options(&mut self) -> Option<Vec<WebhookUrlOption>>
pub fn unset_url_options(&mut self) -> Option<Vec<WebhookUrlOption>>
Unsets the RealmIncomingWebhookBot url_options.
An array of optional URL parameter options for the incoming webhook integration.
In the web app, these are used when generating a URL for an integration.
This is an unstable API expected to be used only by the Zulip web app. Please discuss in chat.zulip.org before using it.
Changes: New in Zulip 11.0 (feature level 403). Previously, these optional URL parameter options were included in the config_options object.
Sourcepub fn with_url_options<'a, C: Into<Cow<'a, [WebhookUrlOption]>>>(
self,
val: C,
) -> Self
pub fn with_url_options<'a, C: Into<Cow<'a, [WebhookUrlOption]>>>( self, val: C, ) -> Self
Builder function that sets the RealmIncomingWebhookBot url_options.
An array of optional URL parameter options for the incoming webhook integration.
In the web app, these are used when generating a URL for an integration.
This is an unstable API expected to be used only by the Zulip web app. Please discuss in chat.zulip.org before using it.
Changes: New in Zulip 11.0 (feature level 403). Previously, these optional URL parameter options were included in the config_options object.