[−][src]Enum rtdlib::types::StatisticsGraph
Describes a statistics graph
Variants
GetChatStatisticsGraph(GetChatStatisticsGraph)
Loads asynchronous or zoomed in chat statistics graph
Async(StatisticsGraphAsync)
The graph data to be asynchronously loaded through getChatStatisticsGraph
Data(StatisticsGraphData)
A graph data
Error(StatisticsGraphError)
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]
&self,
fnc: F
) -> &Self
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]
fn as_ref(&self) -> &StatisticsGraph
[src]
impl Clone for StatisticsGraph
[src]
fn clone(&self) -> StatisticsGraph
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StatisticsGraph
[src]
impl Default for StatisticsGraph
[src]
impl<'de> Deserialize<'de> for StatisticsGraph
[src]
fn deserialize<D>(deserializer: D) -> Result<StatisticsGraph, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for StatisticsGraph
[src]
impl Serialize for StatisticsGraph
[src]
Auto Trait Implementations
impl RefUnwindSafe for StatisticsGraph
impl Send for StatisticsGraph
impl Sync for StatisticsGraph
impl Unpin for StatisticsGraph
impl UnwindSafe for StatisticsGraph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,