Added doc comment to send_message

This commit is contained in:
Werner Kroneman 2024-03-03 20:07:42 +01:00
parent ccdf800d12
commit e5d8d2d561
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ use tokio_xmpp::{
use crate::agent::TokioXmppClient;
/// Send a text message to a recipient.
///
/// # Arguments
/// - `client`: The XMPP client to use to send the message.
/// - `recipient`: The JID of the recipient.
/// - `type_`: The type of the message.
/// - `lang`: The language of the message.
pub async fn send_message<C: ServerConnector>(
client: &mut TokioXmppClient<C>,
recipient: Jid,