pub fn from_auth_token_and_bot_id<S>(
        authorization_token: S,
        region: S,
        bot_id: S,
    ) -> Result<Self>
    where
        S: Into<Vec<u8>>,
    {
        unsafe {
            let mut handle: SPXSPEECHCONFIGHANDLE = MaybeUninit::uninit().assume_init();
            let c_authorization_token = CString::new(authorization_token)?;
            let c_region = CString::new(region)?;
            let c_bot_id = CString::new(bot_id)?;
            let ret = bot_framework_config_from_authorization_token(
                &mut handle,
                c_authorization_token.as_ptr(),
                c_region.as_ptr(),
                c_bot_id.as_ptr(),
            );
            convert_err(
                ret,
                "DialogServiceConnector::from_auth_token_and_bot_id error",
            )?;
            Ok(BotFrameworkConfig {
                config: SpeechConfig::from_handle(handle)?,
            })
        }
    }
/// 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.    
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.
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 .
pub fn from_auth_token_and_bot_id<S>(
        authorization_token: S,
        region: S,
        bot_id: S,
    ) -> Result<Self>
    where
        S: Into<Vec<u8>>,
    {
        unsafe {
            let mut handle: SPXSPEECHCONFIGHANDLE = MaybeUninit::uninit().assume_init();
            let c_authorization_token = CString::new(authorization_token)?;
            let c_region = CString::new(region)?;
            let c_bot_id = CString::new(bot_id)?;
            let ret = bot_framework_config_from_authorization_token(
                &mut handle,
                c_authorization_token.as_ptr(),
                c_region.as_ptr(),
                c_bot_id.as_ptr(),
            );
            convert_err(
                ret,
                "DialogServiceConnector::from_auth_token_and_bot_id error",
            )?;
            Ok(BotFrameworkConfig {
                config: SpeechConfig::from_handle(handle)?,
            })
        }
    }
pub fn from_auth_token_and_bot_id < S > ( authorization_token : S , region : S , bot_id : S , ) -> Result < Self > where S : Into < Vec < u8 > > , { unsafe { let mut handle : SPXSPEECHCONFIGHANDLE = MaybeUninit :: uninit ( ) . assume_init ( ) ; let c_authorization_token = CString :: new ( authorization_token ) ? ; let c_region = CString :: new ( region ) ? ; let c_bot_id = CString :: new ( bot_id ) ? ; let ret = bot_framework_config_from_authorization_token ( & mut handle , c_authorization_token . as_ptr ( ) , c_region . as_ptr ( ) , c_bot_id . as_ptr ( ) , ) ; convert_err ( ret , " " , ) ? ; Ok ( BotFrameworkConfig { config : SpeechConfig :: from_handle ( handle ) ? , } ) } }
Creates a bot framework service config instance with the specified authorization
token and region and botID.
Creates a bot framework service config instance with the specified authorization token and region and botID .
authorization_token
S
region
S
bot_id
S
authorization_token
S
region
S
bot_id
S