#[repr(i32)]pub enum WidgetType {
WIDGET_TYPE_UNSPECIFIED = 0,
CHART = 1,
ORDERBOOK = 2,
TRADES = 3,
POSITIONS = 4,
ORDERS = 5,
}Expand description
WidgetType identifies the kind of editor widget stored in a layout.
Variants§
WIDGET_TYPE_UNSPECIFIED = 0
Widget type is not specified.
CHART = 1
Price chart widget.
ORDERBOOK = 2
Order book widget.
TRADES = 3
Recent trades widget.
POSITIONS = 4
Positions widget.
ORDERS = 5
Orders widget.
Implementations§
Source§impl WidgetType
impl WidgetType
Sourcepub const WidgetTypeUnspecified: Self = Self::WIDGET_TYPE_UNSPECIFIED
pub const WidgetTypeUnspecified: Self = Self::WIDGET_TYPE_UNSPECIFIED
Idiomatic alias for Self::WIDGET_TYPE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Chart: Self = Self::CHART
pub const Chart: Self = Self::CHART
Idiomatic alias for Self::CHART; Debug prints the variant name.
Sourcepub const Orderbook: Self = Self::ORDERBOOK
pub const Orderbook: Self = Self::ORDERBOOK
Idiomatic alias for Self::ORDERBOOK; Debug prints the variant name.
Sourcepub const Trades: Self = Self::TRADES
pub const Trades: Self = Self::TRADES
Idiomatic alias for Self::TRADES; Debug prints the variant name.
Sourcepub const Positions: Self = Self::POSITIONS
pub const Positions: Self = Self::POSITIONS
Idiomatic alias for Self::POSITIONS; Debug prints the variant name.
Sourcepub const Orders: Self = Self::ORDERS
pub const Orders: Self = Self::ORDERS
Idiomatic alias for Self::ORDERS; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for WidgetType
impl Clone for WidgetType
Source§fn clone(&self) -> WidgetType
fn clone(&self) -> WidgetType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WidgetType
Source§impl Debug for WidgetType
impl Debug for WidgetType
Source§impl Default for WidgetType
impl Default for WidgetType
Source§impl<'de> Deserialize<'de> for WidgetType
impl<'de> Deserialize<'de> for WidgetType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for WidgetType
impl Enumeration for WidgetType
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for WidgetType
Source§impl Hash for WidgetType
impl Hash for WidgetType
Source§impl PartialEq for WidgetType
impl PartialEq for WidgetType
Source§impl ProtoElemJson for WidgetType
impl ProtoElemJson for WidgetType
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for WidgetType
impl Serialize for WidgetType
impl StructuralPartialEq for WidgetType
Auto Trait Implementations§
impl Freeze for WidgetType
impl RefUnwindSafe for WidgetType
impl Send for WidgetType
impl Sync for WidgetType
impl Unpin for WidgetType
impl UnsafeUnpin for WidgetType
impl UnwindSafe for WidgetType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.