pub struct TeamsProvider {
pub webhook_url: String,
/* private fields */
}Expand description
Posts an Adaptive Card to a Microsoft Teams channel webhook. The message shape works with both Workflows (Power Automate) webhooks, which replace Office 365 connectors, and legacy incoming webhooks.
Fields§
§webhook_url: StringImplementations§
Source§impl TeamsProvider
impl TeamsProvider
pub fn new(webhook_url: String) -> Self
Sourcepub fn with_templates(self, templates: Option<Templates>) -> Self
pub fn with_templates(self, templates: Option<Templates>) -> Self
Uses templates for the parts they set; see crate::template.
Trait Implementations§
Source§impl Provider for TeamsProvider
impl Provider for TeamsProvider
fn name(&self) -> &'static str
Source§fn preview(&self, signal: &Signal) -> Option<Value>
fn preview(&self, signal: &Signal) -> Option<Value>
What
send would deliver for signal, without sending it, for
checking templates (signal preview). None when the provider
can’t show it.fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
signal: &'life1 Signal,
) -> Pin<Box<dyn Future<Output = Result<(), SignalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for TeamsProvider
impl !RefUnwindSafe for TeamsProvider
impl !UnwindSafe for TeamsProvider
impl Send for TeamsProvider
impl Sync for TeamsProvider
impl Unpin for TeamsProvider
impl UnsafeUnpin for TeamsProvider
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