pub struct TeamsConfig {
pub enabled: bool,
pub app_id: String,
pub app_password: String,
pub tenant_id: Option<String>,
pub webhook_path: String,
pub allowlist: Vec<String>,
pub group_policy: TeamsGroupPolicy,
pub rate_limit_requests_per_second: u32,
pub adaptive_cards_enabled: bool,
pub attachment_download_dir: Option<String>,
}Expand description
Microsoft Teams bot configuration.
Fields§
§enabled: bool§app_id: StringMicrosoft App ID (from Azure Bot registration)
app_password: StringMicrosoft App Password (client secret)
tenant_id: Option<String>Tenant ID for single-tenant apps (None for multi-tenant)
webhook_path: StringWebhook path for incoming messages
allowlist: Vec<String>List of allowed user emails or AAD object IDs
group_policy: TeamsGroupPolicyGroup policy for mentions
rate_limit_requests_per_second: u32Rate limit for sending messages
adaptive_cards_enabled: boolEnable Adaptive Cards support
attachment_download_dir: Option<String>Optional local download root for inbound Teams attachments
Trait Implementations§
Source§impl Clone for TeamsConfig
impl Clone for TeamsConfig
Source§fn clone(&self) -> TeamsConfig
fn clone(&self) -> TeamsConfig
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 TeamsConfig
impl Debug for TeamsConfig
Source§impl<'de> Deserialize<'de> for TeamsConfig
impl<'de> Deserialize<'de> for TeamsConfig
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 TeamsConfig
impl RefUnwindSafe for TeamsConfig
impl Send for TeamsConfig
impl Sync for TeamsConfig
impl Unpin for TeamsConfig
impl UnsafeUnpin for TeamsConfig
impl UnwindSafe for TeamsConfig
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