pub struct CustomCommandsConfig {
    pub config: SpeechConfig,
}
Expand description

CustomCommandsConfig defines configurations for the dialog service connector object for using a CustomCommands backend.

Fields

config: SpeechConfig

Implementations

Creates a Custom Commands config instance with the specified application id, subscription key and region.

Creates a Custom Commands config instance with the specified application id authorization token and region. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. As configuration values are copied when creating a new connector, the new token value will not apply to connectors that have already been created. For connectors that have been created before, you need to set authorization token of the corresponding connector to refresh the token. Otherwise, the connectors will encounter errors during operation.

Gets the corresponding backend application identifier.

Sets the corresponding backend application identifier.

Trait Implementations

Formats the value using the given formatter. Read more

SetLanguage sets the input language to the connector. The language is specified in BCP-47 format. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.