#[repr(u64)]pub enum BotType {
Generic = 1,
IncomingWebhook = 2,
OutgoingWebhook = 3,
Embedded = 4,
}Expand description
Represents a bot type.
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§
Generic = 1
Represents a Generic bot.
IncomingWebhook = 2
Represents a Incoming webhook bot.
OutgoingWebhook = 3
Represents a Outgoing webhook bot.
Embedded = 4
Represents a Embedded bot.
Implementations§
Trait Implementations§
impl Copy for BotType
Source§impl<'de> Deserialize<'de> for BotType
impl<'de> Deserialize<'de> for BotType
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
impl Eq for BotType
impl StructuralPartialEq for BotType
Auto Trait Implementations§
impl Freeze for BotType
impl RefUnwindSafe for BotType
impl Send for BotType
impl Sync for BotType
impl Unpin for BotType
impl UnsafeUnpin for BotType
impl UnwindSafe for BotType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.