pub struct ChatBotEndpoint(/* private fields */);
Expand description
An endpoint for interactiong with the ChatBot
§Examples
use some_random_api::Client;
use std::fs::write;
Client::new(Some("xxxxxxxxxx")).chatbot.chatbot("Hello there").await?;
Implementations§
Source§impl ChatBotEndpoint
impl ChatBotEndpoint
Sourcepub async fn chatbot<T: ToString>(&self, message: T) -> Result<ChatBotResponse>
pub async fn chatbot<T: ToString>(&self, message: T) -> Result<ChatBotResponse>
Talk to a virtual chatbot
Auto Trait Implementations§
impl Freeze for ChatBotEndpoint
impl !RefUnwindSafe for ChatBotEndpoint
impl Send for ChatBotEndpoint
impl Sync for ChatBotEndpoint
impl Unpin for ChatBotEndpoint
impl !UnwindSafe for ChatBotEndpoint
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