pub struct SmsConfig {
pub provider: String,
pub app_id: String,
pub app_key: String,
pub sign_name: String,
pub template_id: String,
pub tencent: Option<TencentSmsConfig>,
pub aliyun: Option<AliyunSmsConfig>,
}Fields§
§provider: String短信提供商 (tencent/aliyun)
app_id: String应用 ID
app_key: String应用 Key
sign_name: String签名名称
template_id: String模板 ID
tencent: Option<TencentSmsConfig>腾讯云短信配置
aliyun: Option<AliyunSmsConfig>阿里云短信配置
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SmsConfig
impl<'de> Deserialize<'de> for SmsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SmsConfig
impl RefUnwindSafe for SmsConfig
impl Send for SmsConfig
impl Sync for SmsConfig
impl Unpin for SmsConfig
impl UnwindSafe for SmsConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)