Enum rust_tdlib::types::ChatReportReason
source · [−]pub enum ChatReportReason {
ChildAbuse(ChatReportReasonChildAbuse),
Copyright(ChatReportReasonCopyright),
Custom(ChatReportReasonCustom),
Fake(ChatReportReasonFake),
Pornography(ChatReportReasonPornography),
Spam(ChatReportReasonSpam),
UnrelatedLocation(ChatReportReasonUnrelatedLocation),
Violence(ChatReportReasonViolence),
// some variants omitted
}Expand description
Describes the reason why a chat is reported
Variants
ChildAbuse(ChatReportReasonChildAbuse)
The chat has child abuse related content
Copyright(ChatReportReasonCopyright)
The chat contains copyrighted content
Custom(ChatReportReasonCustom)
A custom reason provided by the user
Fake(ChatReportReasonFake)
The chat represents a fake account
Pornography(ChatReportReasonPornography)
The chat contains pornographic messages
Spam(ChatReportReasonSpam)
The chat contains spam messages
UnrelatedLocation(ChatReportReasonUnrelatedLocation)
The location-based chat is unrelated to its stated location
Violence(ChatReportReasonViolence)
The chat promotes violence
Implementations
Trait Implementations
sourceimpl AsRef<ChatReportReason> for ChatReportReason
impl AsRef<ChatReportReason> for ChatReportReason
sourcefn as_ref(&self) -> &ChatReportReason
fn as_ref(&self) -> &ChatReportReason
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChatReportReason
impl Clone for ChatReportReason
sourcefn clone(&self) -> ChatReportReason
fn clone(&self) -> ChatReportReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ChatReportReason
impl Debug for ChatReportReason
sourceimpl Default for ChatReportReason
impl Default for ChatReportReason
sourceimpl<'de> Deserialize<'de> for ChatReportReason
impl<'de> Deserialize<'de> for ChatReportReason
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ChatReportReason
impl Serialize for ChatReportReason
Auto Trait Implementations
impl RefUnwindSafe for ChatReportReason
impl Send for ChatReportReason
impl Sync for ChatReportReason
impl Unpin for ChatReportReason
impl UnwindSafe for ChatReportReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more