pub struct WeChatConfig {Show 13 fields
pub enabled: bool,
pub app_type: String,
pub corp_id: String,
pub corp_secret: String,
pub agent_id: String,
pub app_id: String,
pub app_secret: String,
pub token: String,
pub encoding_aes_key: Option<String>,
pub webhook_path: String,
pub allowlist: Vec<String>,
pub rate_limit_per_second: u32,
pub enable_encryption: bool,
}Expand description
WeChat configuration (supports both Work and Official Accounts).
Fields§
§enabled: bool§app_type: StringApp type: “work” for WeChat Work, “official_account” for Official Accounts
corp_id: StringWeChat Work Corp ID
corp_secret: StringWeChat Work Corp Secret
agent_id: StringWeChat Work Agent ID
app_id: StringWeChat Official Account App ID
app_secret: StringWeChat Official Account App Secret
token: StringToken for webhook signature verification (Official Accounts)
encoding_aes_key: Option<String>Encoding AES key for message encryption (optional)
webhook_path: StringWebhook path for receiving messages
allowlist: Vec<String>List of allowed user IDs (empty = all allowed)
rate_limit_per_second: u32Rate limit for API requests per second (default: 20)
enable_encryption: boolEnable message encryption
Trait Implementations§
Source§impl Clone for WeChatConfig
impl Clone for WeChatConfig
Source§fn clone(&self) -> WeChatConfig
fn clone(&self) -> WeChatConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeChatConfig
impl Debug for WeChatConfig
Source§impl<'de> Deserialize<'de> for WeChatConfig
impl<'de> Deserialize<'de> for WeChatConfig
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 WeChatConfig
impl RefUnwindSafe for WeChatConfig
impl Send for WeChatConfig
impl Sync for WeChatConfig
impl Unpin for WeChatConfig
impl UnsafeUnpin for WeChatConfig
impl UnwindSafe for WeChatConfig
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