1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # wit_ai_rs
//!
//! A crate for interacting with the wit.ai API
//!
//! The following code shows an example how to get started with this crate
//! by instantiating a WitClient:
//! ```rust
//! # use wit_ai_rs::client::WitClient;
//! let wit_client = WitClient::new("TOKEN".to_string(), "20240215".to_string());
//! ```
//!
//! Specific endpoints can be called using various methods of the WitClient struct, for
//! example the message endpoint can be called as follows:
//! ```rust,no_run
//! # tokio_test::block_on(async {
//! # use wit_ai_rs::client::WitClient;
//! # use wit_ai_rs::message::{MessageResponse, MessageOptions};
//! # let wit_client = WitClient::new(String::new(), String::new());
//! let response: MessageResponse = wit_client
//! .message("Some query sentence".to_string(), MessageOptions::default())
//! .await
//! .unwrap();
//! # })
//! ```
//! Examples for most methods can be found in their respective modules. For each of these examples,
//! assume that `wit_client` is a valid WitClient.
pub use *;