pub enum StatisticalGraph {
GetStatisticalGraph(GetStatisticalGraph),
Async(StatisticalGraphAsync),
Data(StatisticalGraphData),
Error(StatisticalGraphError),
// some variants omitted
}
Expand description
Describes a statistical graph
Variants§
GetStatisticalGraph(GetStatisticalGraph)
Loads an asynchronous or a zoomed in statistical graph
Async(StatisticalGraphAsync)
The graph data to be asynchronously loaded through getStatisticalGraph
Data(StatisticalGraphData)
A graph data
Error(StatisticalGraphError)
An error message to be shown to the user instead of the graph
Implementations§
Source§impl StatisticalGraph
impl StatisticalGraph
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
pub fn is_get_statistical_graph(&self) -> bool
pub fn is_async(&self) -> bool
pub fn is_data(&self) -> bool
pub fn is_error(&self) -> bool
pub fn on_get_statistical_graph<F: FnOnce(&GetStatisticalGraph)>( &self, fnc: F, ) -> &Self
pub fn on_async<F: FnOnce(&StatisticalGraphAsync)>(&self, fnc: F) -> &Self
pub fn on_data<F: FnOnce(&StatisticalGraphData)>(&self, fnc: F) -> &Self
pub fn on_error<F: FnOnce(&StatisticalGraphError)>(&self, fnc: F) -> &Self
pub fn as_get_statistical_graph(&self) -> Option<&GetStatisticalGraph>
pub fn as_async(&self) -> Option<&StatisticalGraphAsync>
pub fn as_data(&self) -> Option<&StatisticalGraphData>
pub fn as_error(&self) -> Option<&StatisticalGraphError>
pub fn get_statistical_graph<T: AsRef<GetStatisticalGraph>>(t: T) -> Self
pub fn async_<T: AsRef<StatisticalGraphAsync>>(t: T) -> Self
pub fn data<T: AsRef<StatisticalGraphData>>(t: T) -> Self
pub fn error<T: AsRef<StatisticalGraphError>>(t: T) -> Self
Trait Implementations§
Source§impl AsRef<StatisticalGraph> for StatisticalGraph
impl AsRef<StatisticalGraph> for StatisticalGraph
Source§fn as_ref(&self) -> &StatisticalGraph
fn as_ref(&self) -> &StatisticalGraph
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StatisticalGraph
impl Clone for StatisticalGraph
Source§fn clone(&self) -> StatisticalGraph
fn clone(&self) -> StatisticalGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StatisticalGraph
impl Debug for StatisticalGraph
Source§impl Default for StatisticalGraph
impl Default for StatisticalGraph
Source§impl<'de> Deserialize<'de> for StatisticalGraph
impl<'de> Deserialize<'de> for StatisticalGraph
Source§fn deserialize<D>(deserializer: D) -> Result<StatisticalGraph, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<StatisticalGraph, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RObject for StatisticalGraph
impl RObject for StatisticalGraph
Auto Trait Implementations§
impl Freeze for StatisticalGraph
impl RefUnwindSafe for StatisticalGraph
impl Send for StatisticalGraph
impl Sync for StatisticalGraph
impl Unpin for StatisticalGraph
impl UnwindSafe for StatisticalGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more