pub struct BotServiceEmbedded {
pub service_name: Option<String>,
pub config_data: Option<HashMap<String, String>>,
}Expand description
Represents when the bot is an embedded 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.
Fields§
§service_name: Option<String>The name of the bot.
config_data: Option<HashMap<String, String>>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.
Implementations§
Source§impl BotServiceEmbedded
impl BotServiceEmbedded
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new BotServiceEmbedded.
Trait Implementations§
Source§impl Clone for BotServiceEmbedded
impl Clone for BotServiceEmbedded
Source§impl Debug for BotServiceEmbedded
impl Debug for BotServiceEmbedded
Source§impl Default for BotServiceEmbedded
impl Default for BotServiceEmbedded
Source§impl<'de> Deserialize<'de> for BotServiceEmbedded
impl<'de> Deserialize<'de> for BotServiceEmbedded
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BotServiceEmbedded
impl PartialEq for BotServiceEmbedded
Source§impl Serialize for BotServiceEmbedded
impl Serialize for BotServiceEmbedded
impl StructuralPartialEq for BotServiceEmbedded
Auto Trait Implementations§
impl Freeze for BotServiceEmbedded
impl RefUnwindSafe for BotServiceEmbedded
impl Send for BotServiceEmbedded
impl Sync for BotServiceEmbedded
impl Unpin for BotServiceEmbedded
impl UnsafeUnpin for BotServiceEmbedded
impl UnwindSafe for BotServiceEmbedded
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