pub struct ConversationsApi { /* private fields */ }Implementations§
Source§impl ConversationsApi
impl ConversationsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn search( &self, params: &SearchConversationsParams, ) -> Result<SearchConversationsResponse>
pub async fn get( &self, conversation_id: &str, ) -> Result<GetConversationResponse>
pub async fn create( &self, params: &CreateConversationParams, ) -> Result<GetConversationResponse>
pub async fn update( &self, conversation_id: &str, params: &UpdateConversationParams, ) -> Result<GetConversationResponse>
pub async fn delete( &self, conversation_id: &str, ) -> Result<DeleteConversationResponse>
pub async fn get_messages( &self, conversation_id: &str, ) -> Result<GetMessagesResponse>
pub async fn send_message( &self, params: &SendMessageParams, ) -> Result<SendMessageResponse>
pub async fn add_inbound_message( &self, params: &SendMessageParams, ) -> Result<SendMessageResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for ConversationsApi
impl !UnwindSafe for ConversationsApi
impl Freeze for ConversationsApi
impl Send for ConversationsApi
impl Sync for ConversationsApi
impl Unpin for ConversationsApi
impl UnsafeUnpin for ConversationsApi
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