pub enum WhatsAppBotSessionInitResponse {
Success(Version),
Failure(WhatsAppBotSessionInitFailure),
}Expand description
What is being responded by the whatsapp bot when trying to establish a session
Variants§
Success(Version)
The version the bot agreed to use from the list of supported versions sent by the client
Failure(WhatsAppBotSessionInitFailure)
Trait Implementations§
Source§impl Clone for WhatsAppBotSessionInitResponse
impl Clone for WhatsAppBotSessionInitResponse
Source§fn clone(&self) -> WhatsAppBotSessionInitResponse
fn clone(&self) -> WhatsAppBotSessionInitResponse
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 WhatsAppBotSessionInitResponse
impl<'de> Deserialize<'de> for WhatsAppBotSessionInitResponse
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 WhatsAppBotSessionInitResponse
impl RefUnwindSafe for WhatsAppBotSessionInitResponse
impl Send for WhatsAppBotSessionInitResponse
impl Sync for WhatsAppBotSessionInitResponse
impl Unpin for WhatsAppBotSessionInitResponse
impl UnwindSafe for WhatsAppBotSessionInitResponse
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