parsers: Document new MucUser helpers

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-06-07 19:17:06 +02:00
parent 9fa8a9f6ba
commit f9d4419513
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -272,6 +272,7 @@ generate_element!(
);
impl MucUser {
/// Creates an empty MucUser
pub fn new() -> MucUser {
MucUser {
status: vec![],
@ -279,11 +280,13 @@ impl MucUser {
}
}
/// Set statuses for this MucUser
pub fn with_statuses(mut self, status: Vec<Status>) -> MucUser {
self.status = status;
self
}
/// Set items for this MucUser
pub fn with_items(mut self, items: Vec<Item>) -> MucUser {
self.items = items;
self