Enum google_api_proto::google::cloud::dataqna::v1alpha::interpretation_structure::VisualizationType
source · #[repr(i32)]pub enum VisualizationType {
Show 13 variants
Unspecified = 0,
Table = 1,
BarChart = 2,
ColumnChart = 3,
Timeline = 4,
ScatterPlot = 5,
PieChart = 6,
LineChart = 7,
AreaChart = 8,
ComboChart = 9,
Histogram = 10,
GenericChart = 11,
ChartNotUnderstood = 12,
}
Expand description
Enumeration of visualzation types to use for query response data.
Variants§
Unspecified = 0
No visualization type was specified.
Table = 1
Show a table.
BarChart = 2
Show a bar chart.
ColumnChart = 3
Show a column chart.
Timeline = 4
Show a timeline.
ScatterPlot = 5
Show a scatter plot.
PieChart = 6
Show a pie chart.
LineChart = 7
Show a line chart.
AreaChart = 8
Show an area chart.
ComboChart = 9
Show a combo chart.
Histogram = 10
Show a histogram.
GenericChart = 11
This denotes queries when the user has not specified the particular type of chart and has mentioned only a generic chart name such as “Chart”, “Plot”, “Graph”, etc. This will differentiate it from specific charting terms such as “Bar chart”, “Pie chart”, etc.
ChartNotUnderstood = 12
The user tried to specify a chart type, but the interpreter could not understand the type. The client should display a generic chart and may give a hint to the user that the requested type was not understood.
Implementations§
source§impl VisualizationType
impl VisualizationType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for VisualizationType
impl Clone for VisualizationType
source§fn clone(&self) -> VisualizationType
fn clone(&self) -> VisualizationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VisualizationType
impl Debug for VisualizationType
source§impl Default for VisualizationType
impl Default for VisualizationType
source§fn default() -> VisualizationType
fn default() -> VisualizationType
source§impl From<VisualizationType> for i32
impl From<VisualizationType> for i32
source§fn from(value: VisualizationType) -> i32
fn from(value: VisualizationType) -> i32
source§impl Hash for VisualizationType
impl Hash for VisualizationType
source§impl Ord for VisualizationType
impl Ord for VisualizationType
source§fn cmp(&self, other: &VisualizationType) -> Ordering
fn cmp(&self, other: &VisualizationType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for VisualizationType
impl PartialEq for VisualizationType
source§fn eq(&self, other: &VisualizationType) -> bool
fn eq(&self, other: &VisualizationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VisualizationType
impl PartialOrd for VisualizationType
source§fn partial_cmp(&self, other: &VisualizationType) -> Option<Ordering>
fn partial_cmp(&self, other: &VisualizationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for VisualizationType
impl TryFrom<i32> for VisualizationType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<VisualizationType, DecodeError>
fn try_from(value: i32) -> Result<VisualizationType, DecodeError>
impl Copy for VisualizationType
impl Eq for VisualizationType
impl StructuralPartialEq for VisualizationType
Auto Trait Implementations§
impl Freeze for VisualizationType
impl RefUnwindSafe for VisualizationType
impl Send for VisualizationType
impl Sync for VisualizationType
impl Unpin for VisualizationType
impl UnwindSafe for VisualizationType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request