#[repr(u8)]pub enum TransactionType {
Open = 0,
Pending = 1,
Close = 2,
Modify = 3,
Delete = 4,
}Variants§
Open = 0
Order open, used for opening orders
Pending = 1
Order pending, only used in the streaming getTrades command
Close = 2
Order close
Modify = 3
Order modify, only used in the tradeTransaction command
Delete = 4
Order delete, only used in the tradeTransaction command
Trait Implementations§
Source§impl Clone for TransactionType
impl Clone for TransactionType
Source§fn clone(&self) -> TransactionType
fn clone(&self) -> TransactionType
Returns a copy 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 TransactionType
impl Debug for TransactionType
Source§impl Default for TransactionType
impl Default for TransactionType
Source§fn default() -> TransactionType
fn default() -> TransactionType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransactionType
impl<'de> Deserialize<'de> for TransactionType
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
Source§impl From<TransactionType> for u8
impl From<TransactionType> for u8
Source§fn from(enum_value: TransactionType) -> Self
fn from(enum_value: TransactionType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransactionType
impl PartialEq for TransactionType
Source§impl Serialize for TransactionType
impl Serialize for TransactionType
Source§impl TryFrom<u8> for TransactionType
impl TryFrom<u8> for TransactionType
Source§type Error = TryFromPrimitiveError<TransactionType>
type Error = TryFromPrimitiveError<TransactionType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TransactionType
impl TryFromPrimitive for TransactionType
const NAME: &'static str = "TransactionType"
type Primitive = u8
type Error = TryFromPrimitiveError<TransactionType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl StructuralPartialEq for TransactionType
Auto Trait Implementations§
impl Freeze for TransactionType
impl RefUnwindSafe for TransactionType
impl Send for TransactionType
impl Sync for TransactionType
impl Unpin for TransactionType
impl UnwindSafe for TransactionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)