parsers: Document new MucUser helpers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
9fa8a9f6ba
commit
f9d4419513
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue