pub struct Service<T>{ /* private fields */ }
Available on crate feature
namespace-chatbsky
only.Implementations§
Source§impl<T> Service<T>
impl<T> Service<T>
pub async fn accept_convo(&self, input: Input) -> Result<Output, Error>
Sourcepub async fn add_reaction(&self, input: Input) -> Result<Output, Error>
pub async fn add_reaction(&self, input: Input) -> Result<Output, Error>
Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.
pub async fn delete_message_for_self( &self, input: Input, ) -> Result<Output, Error>
pub async fn get_convo(&self, params: Parameters) -> Result<Output, Error>
Sourcepub async fn get_convo_availability(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_convo_availability( &self, params: Parameters, ) -> Result<Output, Error>
Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.
pub async fn get_convo_for_members( &self, params: Parameters, ) -> Result<Output, Error>
pub async fn get_log(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_messages(&self, params: Parameters) -> Result<Output, Error>
pub async fn leave_convo(&self, input: Input) -> Result<Output, Error>
pub async fn list_convos(&self, params: Parameters) -> Result<Output, Error>
pub async fn mute_convo(&self, input: Input) -> Result<Output, Error>
Sourcepub async fn remove_reaction(&self, input: Input) -> Result<Output, Error>
pub async fn remove_reaction(&self, input: Input) -> Result<Output, Error>
Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn’t.
pub async fn send_message(&self, input: Input) -> Result<Output, Error>
pub async fn send_message_batch(&self, input: Input) -> Result<Output, Error>
pub async fn unmute_convo(&self, input: Input) -> Result<Output, Error>
pub async fn update_all_read(&self, input: Input) -> Result<Output, Error>
pub async fn update_read(&self, input: Input) -> Result<Output, Error>
Auto Trait Implementations§
impl<T> Freeze for Service<T>
impl<T> RefUnwindSafe for Service<T>where
T: RefUnwindSafe,
impl<T> Send for Service<T>
impl<T> Sync for Service<T>
impl<T> Unpin for Service<T>where
T: Unpin,
impl<T> UnwindSafe for Service<T>where
T: RefUnwindSafe + UnwindSafe,
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