[][src]Struct rtdlib::types::ReportChat

pub struct ReportChat { /* fields omitted */ }

Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chats with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators

Implementations

impl ReportChat[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDReportChatBuilder[src]

pub fn chat_id(&self) -> i64[src]

pub fn reason(&self) -> &ChatReportReason[src]

pub fn message_ids(&self) -> &Vec<i64>[src]

Trait Implementations

impl AsRef<ReportChat> for ReportChat[src]

impl Clone for ReportChat[src]

impl Debug for ReportChat[src]

impl Default for ReportChat[src]

impl<'de> Deserialize<'de> for ReportChat[src]

impl RFunction for ReportChat[src]

impl RObject for ReportChat[src]

impl Serialize for ReportChat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.