#[repr(i32)]pub enum OrderGroupType {
Unknown = 0,
Normal = 1,
Bracket = 2,
Group = 3,
Basket = 4,
Oco = 5,
}Expand description
v1.8 daemon additive order-relation type. Values intentionally differ from backend odr_sys_cmn.GroupType so Unknown remains distinct from backend NORMAL=0. relationExt.orderGroupTypeRaw preserves the server numeric value.
Variants§
Implementations§
Source§impl OrderGroupType
impl OrderGroupType
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 OrderGroupType
impl Clone for OrderGroupType
Source§fn clone(&self) -> OrderGroupType
fn clone(&self) -> OrderGroupType
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 OrderGroupType
Source§impl Debug for OrderGroupType
impl Debug for OrderGroupType
Source§impl Default for OrderGroupType
impl Default for OrderGroupType
Source§fn default() -> OrderGroupType
fn default() -> OrderGroupType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderGroupType
impl<'de> Deserialize<'de> for OrderGroupType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OrderGroupType
Source§impl From<OrderGroupType> for i32
impl From<OrderGroupType> for i32
Source§fn from(value: OrderGroupType) -> i32
fn from(value: OrderGroupType) -> i32
Converts to this type from the input type.
Source§impl Hash for OrderGroupType
impl Hash for OrderGroupType
Source§impl Ord for OrderGroupType
impl Ord for OrderGroupType
Source§fn cmp(&self, other: &OrderGroupType) -> Ordering
fn cmp(&self, other: &OrderGroupType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OrderGroupType
impl PartialEq for OrderGroupType
Source§fn eq(&self, other: &OrderGroupType) -> bool
fn eq(&self, other: &OrderGroupType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OrderGroupType
impl PartialOrd for OrderGroupType
Source§impl Serialize for OrderGroupType
impl Serialize for OrderGroupType
impl StructuralPartialEq for OrderGroupType
Source§impl TryFrom<i32> for OrderGroupType
impl TryFrom<i32> for OrderGroupType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<OrderGroupType, UnknownEnumValue>
fn try_from(value: i32) -> Result<OrderGroupType, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OrderGroupType
impl RefUnwindSafe for OrderGroupType
impl Send for OrderGroupType
impl Sync for OrderGroupType
impl Unpin for OrderGroupType
impl UnsafeUnpin for OrderGroupType
impl UnwindSafe for OrderGroupType
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