[][src]Enum rtdlib::types::StatisticsGraph

pub enum StatisticsGraph {
    GetChatStatisticsGraph(GetChatStatisticsGraph),
    Async(StatisticsGraphAsync),
    Data(StatisticsGraphData),
    Error(StatisticsGraphError),
    // some variants omitted
}

Describes a statistics graph

Variants

GetChatStatisticsGraph(GetChatStatisticsGraph)

Loads asynchronous or zoomed in chat statistics graph

The graph data to be asynchronously loaded through getChatStatisticsGraph

A graph data

An error message to be shown to the user instead of the graph

Implementations

impl StatisticsGraph[src]

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

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

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

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

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

pub fn on_get_chat_statistics_graph<F: FnOnce(&GetChatStatisticsGraph)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_async<F: FnOnce(&StatisticsGraphAsync)>(&self, fnc: F) -> &Self[src]

pub fn on_data<F: FnOnce(&StatisticsGraphData)>(&self, fnc: F) -> &Self[src]

pub fn on_error<F: FnOnce(&StatisticsGraphError)>(&self, fnc: F) -> &Self[src]

pub fn as_get_chat_statistics_graph(&self) -> Option<&GetChatStatisticsGraph>[src]

pub fn as_async(&self) -> Option<&StatisticsGraphAsync>[src]

pub fn as_data(&self) -> Option<&StatisticsGraphData>[src]

pub fn as_error(&self) -> Option<&StatisticsGraphError>[src]

pub fn get_chat_statistics_graph<T: AsRef<GetChatStatisticsGraph>>(t: T) -> Self[src]

pub fn async_<T: AsRef<StatisticsGraphAsync>>(t: T) -> Self[src]

pub fn data<T: AsRef<StatisticsGraphData>>(t: T) -> Self[src]

pub fn error<T: AsRef<StatisticsGraphError>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<StatisticsGraph> for StatisticsGraph[src]

impl Clone for StatisticsGraph[src]

impl Debug for StatisticsGraph[src]

impl Default for StatisticsGraph[src]

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

impl RObject for StatisticsGraph[src]

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