Struct whatsapp_cloud_api::WhatasppClient
source · pub struct WhatasppClient { /* private fields */ }Implementations§
source§impl WhatasppClient
impl WhatasppClient
pub fn new(access_token: &str, phone_number_id: &str) -> Self
pub async fn send_message( &self, message: &Message ) -> Result<MessageResponse, WhatsappError>
Auto Trait Implementations§
impl RefUnwindSafe for WhatasppClient
impl Send for WhatasppClient
impl Sync for WhatasppClient
impl Unpin for WhatasppClient
impl UnwindSafe for WhatasppClient
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