diff --git a/parsers/src/muc/user.rs b/parsers/src/muc/user.rs index b32b2c47..d6657ba3 100644 --- a/parsers/src/muc/user.rs +++ b/parsers/src/muc/user.rs @@ -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) -> MucUser { self.status = status; self } + /// Set items for this MucUser pub fn with_items(mut self, items: Vec) -> MucUser { self.items = items; self