Struct witty::client::Client [] [src]

pub struct Client {
    pub token: String,
}

Handles comunication between the application and Wit.ai

Fields

Methods

impl Client
[src]

[src]

Builds and returns a new Client struct with the passed token and actions. If the passed actions are invalid None is returned, else an Option containing the Client is returned.

Note that the token is used to comunicate with Wit.ai servers and has to be obtained by them. To lear how to get your token visit https://wit.ai/docs/quickstart. The token can be found in your application's settings on wit.ai.

[src]

Used to get the exact meaning of a sentance after it's processed by wit.ai. If the server can't be reached, or the token is invalid None is returned.

This is useful for probing how wit.ai will respond to a message.

Trait Implementations

impl Debug for Client
[src]

[src]

Formats the value using the given formatter.