pub enum Endpoint {
Nearest,
Region,
International,
Custom(String),
}Expand description
API 接入点配置
定义 HTTP 请求发送到的域名。
§接入点与地域的区别
- 接入点 (Endpoint): 网络入口,决定 HTTP 请求发送到哪个服务器
- 地域 (Region): 服务地域,通过
X-TC-Region头指定,决定数据处理位置
§各选项说明
Nearest: 就近接入,使用sms.tencentcloudapi.com,系统自动路由到最近服务器Region: 使用ClientConfig::region对应的地域接入点International: 国际短信接入点sms.intl.tencentcloudapi.comCustom: 自定义域名
§金融地域注意
金融地域必须使用 Region 接入点。
Variants§
Nearest
就近接入点 sms.tencentcloudapi.com(默认)
Region
使用 ClientConfig::region 对应的地域接入点
International
国际短信接入点 sms.intl.tencentcloudapi.com
Custom(String)
自定义域名(高级用法)
Implementations§
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more