Enum longport::trade::BalanceType
source · #[repr(i32)]pub enum BalanceType {
Unknown = 0,
Cash = 1,
Stock = 2,
Fund = 3,
}
Expand description
Balance type
Variants§
Trait Implementations§
source§impl Clone for BalanceType
impl Clone for BalanceType
source§fn clone(&self) -> BalanceType
fn clone(&self) -> BalanceType
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 BalanceType
impl Debug for BalanceType
source§impl<'de> Deserialize<'de> for BalanceType
impl<'de> Deserialize<'de> for BalanceType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BalanceType> for i32
impl From<BalanceType> for i32
source§fn from(enum_value: BalanceType) -> Self
fn from(enum_value: BalanceType) -> Self
Converts to this type from the input type.
source§impl From<i32> for BalanceType
impl From<i32> for BalanceType
source§impl FromPrimitive for BalanceType
impl FromPrimitive for BalanceType
source§impl Hash for BalanceType
impl Hash for BalanceType
source§impl PartialEq for BalanceType
impl PartialEq for BalanceType
source§fn eq(&self, other: &BalanceType) -> bool
fn eq(&self, other: &BalanceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BalanceType
impl Serialize for BalanceType
impl Copy for BalanceType
impl Eq for BalanceType
impl StructuralPartialEq for BalanceType
Auto Trait Implementations§
impl Freeze for BalanceType
impl RefUnwindSafe for BalanceType
impl Send for BalanceType
impl Sync for BalanceType
impl Unpin for BalanceType
impl UnwindSafe for BalanceType
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more