pub struct WebhookService { /* private fields */ }Available on crate feature
_async only.Expand description
Async webhook service. Async webhook robot service.
Implementations§
Source§impl WebhookService
impl WebhookService
Sourcepub async fn send_text_message(
&self,
content: &str,
at_mobiles: Option<Vec<String>>,
at_user_ids: Option<Vec<String>>,
is_at_all: Option<bool>,
) -> Result<String>
pub async fn send_text_message( &self, content: &str, at_mobiles: Option<Vec<String>>, at_user_ids: Option<Vec<String>>, is_at_all: Option<bool>, ) -> Result<String>
Sends a text webhook message.
Sourcepub async fn send_link_message(
&self,
title: &str,
text: &str,
message_url: &str,
pic_url: Option<&str>,
) -> Result<String>
pub async fn send_link_message( &self, title: &str, text: &str, message_url: &str, pic_url: Option<&str>, ) -> Result<String>
Sends a link webhook message.
Sourcepub async fn send_markdown_message(
&self,
title: &str,
text: &str,
at_mobiles: Option<Vec<String>>,
at_user_ids: Option<Vec<String>>,
is_at_all: Option<bool>,
) -> Result<String>
pub async fn send_markdown_message( &self, title: &str, text: &str, at_mobiles: Option<Vec<String>>, at_user_ids: Option<Vec<String>>, is_at_all: Option<bool>, ) -> Result<String>
Sends a markdown webhook message.
Sourcepub async fn send_action_card_message_single(
&self,
title: &str,
text: &str,
single_title: &str,
single_url: &str,
btn_orientation: Option<&str>,
) -> Result<String>
pub async fn send_action_card_message_single( &self, title: &str, text: &str, single_title: &str, single_url: &str, btn_orientation: Option<&str>, ) -> Result<String>
Sends a single-button action-card webhook message.
Sourcepub async fn send_action_card_message_multi(
&self,
title: &str,
text: &str,
btns: Vec<ActionCardButton>,
btn_orientation: Option<&str>,
) -> Result<String>
pub async fn send_action_card_message_multi( &self, title: &str, text: &str, btns: Vec<ActionCardButton>, btn_orientation: Option<&str>, ) -> Result<String>
Sends a multi-button action-card webhook message.
Sourcepub async fn send_feed_card_message(
&self,
links: Vec<FeedCardLink>,
) -> Result<String>
pub async fn send_feed_card_message( &self, links: Vec<FeedCardLink>, ) -> Result<String>
Sends a feed-card webhook message.
Trait Implementations§
Source§impl Clone for WebhookService
impl Clone for WebhookService
Source§fn clone(&self) -> WebhookService
fn clone(&self) -> WebhookService
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 moreAuto Trait Implementations§
impl Freeze for WebhookService
impl !RefUnwindSafe for WebhookService
impl Send for WebhookService
impl Sync for WebhookService
impl Unpin for WebhookService
impl UnsafeUnpin for WebhookService
impl !UnwindSafe for WebhookService
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