pub enum Reason {
Spam,
Abuse,
}
Expand description
The possible reasons for a report.
Variants§
Spam
Used for reporting a JID that is sending unwanted messages.
Abuse
Used for reporting general abuse.
Trait Implementations§
Source§impl AsXmlText for Reason
impl AsXmlText for Reason
Source§impl FromXmlText for Reason
impl FromXmlText for Reason
Source§impl IntoAttributeValue for Reason
impl IntoAttributeValue for Reason
Source§fn into_attribute_value(self) -> Option<String>
fn into_attribute_value(self) -> Option<String>
Turns this into an attribute string, or None if it shouldn’t be added.
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
Blanket Implementations§
Source§impl<T> AsOptionalXmlText for Twhere
T: AsXmlText,
impl<T> AsOptionalXmlText for Twhere
T: AsXmlText,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more