WhatsAppBot

Trait WhatsAppBot 

Source
pub trait WhatsAppBot: Sized {
    // Required method
    async fn ping(self, context: Context) -> String;

    // Provided method
    fn serve(self) -> ServeWhatsAppBot<Self> { ... }
}
Expand description

WhatsApp bot service for remote procedure calls

Required Methods§

Source

async fn ping(self, context: Context) -> String

Check if the whatsapp bot is responding

Provided Methods§

Source

fn serve(self) -> ServeWhatsAppBot<Self>

Returns a serving function to use with InFlightRequest::execute.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§