pub enum WhatsAppBotSessionInitFailure {
BotError(String),
NoCompatibleVersion(Vec<Version>),
}Expand description
Why the session init failed
Variants§
BotError(String)
The bot error in general, check the string for more details
NoCompatibleVersion(Vec<Version>)
The client has no compatible version with the bot, the vector is the list of supported versions by the bot
Trait Implementations§
Source§impl Clone for WhatsAppBotSessionInitFailure
impl Clone for WhatsAppBotSessionInitFailure
Source§fn clone(&self) -> WhatsAppBotSessionInitFailure
fn clone(&self) -> WhatsAppBotSessionInitFailure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for WhatsAppBotSessionInitFailure
impl<'de> Deserialize<'de> for WhatsAppBotSessionInitFailure
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
Auto Trait Implementations§
impl Freeze for WhatsAppBotSessionInitFailure
impl RefUnwindSafe for WhatsAppBotSessionInitFailure
impl Send for WhatsAppBotSessionInitFailure
impl Sync for WhatsAppBotSessionInitFailure
impl Unpin for WhatsAppBotSessionInitFailure
impl UnwindSafe for WhatsAppBotSessionInitFailure
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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