[][src]Struct rtdlib::types::GetChatHistory

pub struct GetChatHistory { /* fields omitted */ }

Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance the number of returned messages is chosen by the library. This is an offline request if only_local is true

Implementations

impl GetChatHistory[src]

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

pub fn builder() -> RTDGetChatHistoryBuilder[src]

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

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

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

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

pub fn only_local(&self) -> bool[src]

Trait Implementations

impl AsRef<GetChatHistory> for GetChatHistory[src]

impl Clone for GetChatHistory[src]

impl Debug for GetChatHistory[src]

impl Default for GetChatHistory[src]

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

impl RFunction for GetChatHistory[src]

impl RObject for GetChatHistory[src]

impl Serialize for GetChatHistory[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.