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

BotFrameworkConfig defines configurations for the dialog service connector object for using a Bot Framework backend.

Fields

config: SpeechConfig

Implementations

NewBotFrameworkConfigFromSubscription creates a bot framework service config instance with the specified subscription key and region.

NewBotFrameworkConfigFromSubscriptionAndBotID creates a bot framework service config instance with the specified subscription key, region, and botID .

Creates a bot framework service config instance with the specified 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.

Creates a bot framework service config instance with the specified authorization token and region and botID. 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.

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.