pub enum BotService {
OutgoingWebhook(BotServiceOutgoingWebhook),
Embedded(BotServiceEmbedded),
}Expand description
Represents extra configuration details for the bot.
The fields in the object depend on the type of 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.
Variants§
OutgoingWebhook(BotServiceOutgoingWebhook)
Embedded(BotServiceEmbedded)
Implementations§
Source§impl BotService
impl BotService
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new BotService.
Trait Implementations§
Source§impl Clone for BotService
impl Clone for BotService
Source§impl Debug for BotService
impl Debug for BotService
Source§impl Default for BotService
impl Default for BotService
Source§impl<'de> Deserialize<'de> for BotService
impl<'de> Deserialize<'de> for BotService
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 BotService
impl PartialEq for BotService
Source§impl Serialize for BotService
impl Serialize for BotService
impl StructuralPartialEq for BotService
Auto Trait Implementations§
impl Freeze for BotService
impl RefUnwindSafe for BotService
impl Send for BotService
impl Sync for BotService
impl Unpin for BotService
impl UnsafeUnpin for BotService
impl UnwindSafe for BotService
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