parsers/muc/user: Add status code in docstrings

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-12-17 11:51:26 +01:00
parent 4244dc2be1
commit f8cd3c4fff
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -16,61 +16,61 @@ use std::convert::TryFrom;
generate_attribute_enum!( generate_attribute_enum!(
/// Lists all of the possible status codes used in MUC presences. /// Lists all of the possible status codes used in MUC presences.
Status, "status", MUC_USER, "code", { Status, "status", MUC_USER, "code", {
/// Inform user that any occupant is allowed to see the user's full JID /// 100: Inform user that any occupant is allowed to see the user's full JID
NonAnonymousRoom => 100, NonAnonymousRoom => 100,
/// Inform user that his or her affiliation changed while not in the room /// 101: Inform user that his or her affiliation changed while not in the room
AffiliationChange => 101, AffiliationChange => 101,
/// Inform occupants that room now shows unavailable members /// 102: Inform occupants that room now shows unavailable members
ConfigShowsUnavailableMembers => 102, ConfigShowsUnavailableMembers => 102,
/// Inform occupants that room now does not show unavailable members /// 103: Inform occupants that room now does not show unavailable members
ConfigHidesUnavailableMembers => 103, ConfigHidesUnavailableMembers => 103,
/// Inform occupants that a non-privacy-related room configuration change has occurred /// 104: Inform occupants that a non-privacy-related room configuration change has occurred
ConfigNonPrivacyRelated => 104, ConfigNonPrivacyRelated => 104,
/// Inform user that presence refers to itself /// 110: Inform user that presence refers to itself
SelfPresence => 110, SelfPresence => 110,
/// Inform occupants that room logging is now enabled /// 170: Inform occupants that room logging is now enabled
ConfigRoomLoggingEnabled => 170, ConfigRoomLoggingEnabled => 170,
/// Inform occupants that room logging is now disabled /// 171: Inform occupants that room logging is now disabled
ConfigRoomLoggingDisabled => 171, ConfigRoomLoggingDisabled => 171,
/// Inform occupants that the room is now non-anonymous /// 172: Inform occupants that the room is now non-anonymous
ConfigRoomNonAnonymous => 172, ConfigRoomNonAnonymous => 172,
/// Inform occupants that the room is now semi-anonymous /// 173: Inform occupants that the room is now semi-anonymous
ConfigRoomSemiAnonymous => 173, ConfigRoomSemiAnonymous => 173,
/// Inform user that a new room has been created /// 201: Inform user that a new room has been created
RoomHasBeenCreated => 201, RoomHasBeenCreated => 201,
/// Inform user that service has assigned or modified occupant's roomnick /// 210: Inform user that service has assigned or modified occupant's roomnick
AssignedNick => 210, AssignedNick => 210,
/// Inform user that he or she has been banned from the room /// 301: Inform user that he or she has been banned from the room
Banned => 301, Banned => 301,
/// Inform all occupants of new room nickname /// 303: Inform all occupants of new room nickname
NewNick => 303, NewNick => 303,
/// Inform user that he or she has been kicked from the room /// 307: Inform user that he or she has been kicked from the room
Kicked => 307, Kicked => 307,
/// Inform user that he or she is being removed from the room /// 321: Inform user that he or she is being removed from the room
/// because of an affiliation change /// because of an affiliation change
RemovalFromRoom => 321, RemovalFromRoom => 321,
/// Inform user that he or she is being removed from the room /// 322: Inform user that he or she is being removed from the room
/// because the room has been changed to members-only and the /// because the room has been changed to members-only and the
/// user is not a member /// user is not a member
ConfigMembersOnly => 322, ConfigMembersOnly => 322,
/// Inform user that he or she is being removed from the room /// 332: Inform user that he or she is being removed from the room
/// because the MUC service is being shut down /// because the MUC service is being shut down
ServiceShutdown => 332, ServiceShutdown => 332,
}); });