pub struct RealmEmbeddedBot { /* private fields */ }Expand description
Represents details of an embedded bot. Embedded bots are an experimental feature not enabled in production yet.
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 RealmEmbeddedBot
impl RealmEmbeddedBot
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the RealmEmbeddedBot name.
The name of the bot.
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 RealmEmbeddedBot name.
The name of the bot.
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the RealmEmbeddedBot name.
The name of the bot.
Source§impl RealmEmbeddedBot
impl RealmEmbeddedBot
Sourcepub fn config(&self) -> Option<&HashMap<String, String>>
pub fn config(&self) -> Option<&HashMap<String, String>>
Gets the RealmEmbeddedBot config.
A dictionary of string key/value pairs, which describe the configuration for the bot.
These are usually details like API keys, and are unique to the integration/bot.
Can be an empty dictionary.
Sourcepub fn set_config(&mut self, val: HashMap<String, String>)
pub fn set_config(&mut self, val: HashMap<String, String>)
Sets the RealmEmbeddedBot config.
A dictionary of string key/value pairs, which describe the configuration for the bot.
These are usually details like API keys, and are unique to the integration/bot.
Can be an empty dictionary.
Sourcepub fn unset_config(&mut self) -> Option<HashMap<String, String>>
pub fn unset_config(&mut self) -> Option<HashMap<String, String>>
Unsets the RealmEmbeddedBot config.
A dictionary of string key/value pairs, which describe the configuration for the bot.
These are usually details like API keys, and are unique to the integration/bot.
Can be an empty dictionary.
Sourcepub fn with_config(self, val: HashMap<String, String>) -> Self
pub fn with_config(self, val: HashMap<String, String>) -> Self
Builder function that sets the RealmEmbeddedBot config.
A dictionary of string key/value pairs, which describe the configuration for the bot.
These are usually details like API keys, and are unique to the integration/bot.
Can be an empty dictionary.