Struct slack_client_rs::Client
source · pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
pub fn new(url: &str) -> Client
pub async fn send_message( &self, text: impl Into<String>, blocks: impl Into<Option<Vec<Block>>> ) -> Result<Response>
pub async fn send_message_with_header( &self, header: impl Into<String>, info: impl Into<Option<String>> ) -> Result<Response>
pub async fn send_mrkdwn_message( &self, text: impl Into<String> ) -> Result<Response>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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