Struct apiai::client::ApiAIClient
[−]
[src]
pub struct ApiAIClient { pub version: String, pub access_token: String, pub base_url: String, }
ApiAIClient is used to coordinate calls to the API.ai REST services.
APIAIClient calls the API.AI REST service using hyper. The API version and base url can be configured and an access token for calling the API must be provided when creating the struct.
Fields
version: String
access_token: String
base_url: String
Methods
impl ApiAIClient
[src]
fn query(&self, query: ApiRequest) -> Result<ApiResponse, ApiError>
Carry out an API.ai query
Trait Implementations
impl Default for ApiAIClient
[src]
fn default() -> ApiAIClient
Returns the "default value" for a type. Read more