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
sourceimpl BotFrameworkConfig
impl BotFrameworkConfig
sourcepub fn from_subscription<S>(subscription_key: S, region: S) -> Result<Self> where
S: Into<Vec<u8>>,
pub fn from_subscription<S>(subscription_key: S, region: S) -> Result<Self> where
S: Into<Vec<u8>>,
NewBotFrameworkConfigFromSubscription creates a bot framework service config instance with the specified subscription key and region.
sourcepub fn from_subscription_and_bot_id<S>(
subscription_key: S,
region: S,
bot_id: S
) -> Result<Self> where
S: Into<Vec<u8>>,
pub fn from_subscription_and_bot_id<S>(
subscription_key: S,
region: S,
bot_id: S
) -> Result<Self> where
S: Into<Vec<u8>>,
NewBotFrameworkConfigFromSubscriptionAndBotID creates a bot framework service config instance with the specified subscription key, region, and botID .
sourcepub fn from_auth_token<S>(authorization_token: S, region: S) -> Result<Self> where
S: Into<Vec<u8>>,
pub fn from_auth_token<S>(authorization_token: S, region: S) -> Result<Self> where
S: Into<Vec<u8>>,
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.
sourcepub fn from_auth_token_and_bot_id<S>(
authorization_token: S,
region: S,
bot_id: S
) -> Result<Self> where
S: Into<Vec<u8>>,
pub fn from_auth_token_and_bot_id<S>(
authorization_token: S,
region: S,
bot_id: S
) -> Result<Self> where
S: Into<Vec<u8>>,
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
sourceimpl Debug for BotFrameworkConfig
impl Debug for BotFrameworkConfig
sourceimpl DialogServiceConfig for BotFrameworkConfig
impl DialogServiceConfig for BotFrameworkConfig
fn get_speech_config(&mut self) -> &mut SpeechConfig
fn get_handle(&self) -> SPXSPEECHCONFIGHANDLE
fn set_property(&mut self, id: PropertyId, value: String) -> Result<()>
fn get_property(&mut self, id: PropertyId) -> Result<String>
fn set_property_by_string(&mut self, name: String, value: String) -> Result<()>
fn get_property_by_string(&mut self, name: String) -> Result<String>
fn set_service_property(
&mut self,
name: String,
value: String,
channel: ServicePropertyChannel
) -> Result<()>
fn set_proxy(&mut self, hostname: String, port: u64) -> Result<()>
fn set_proxy_with_usrname_and_pwd(
&mut self,
hostname: String,
port: u64,
username: String,
password: String
) -> Result<()>
sourcefn set_language(&mut self, lang: String) -> Result<()>
fn set_language(&mut self, lang: String) -> Result<()>
SetLanguage sets the input language to the connector. The language is specified in BCP-47 format. Read more
fn get_language(&mut self) -> Result<String>
Auto Trait Implementations
impl RefUnwindSafe for BotFrameworkConfig
impl Send for BotFrameworkConfig
impl !Sync for BotFrameworkConfig
impl Unpin for BotFrameworkConfig
impl UnwindSafe for BotFrameworkConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more