#[repr(u8)]pub enum ProfitMode {
Forex = 5,
Cfd = 6,
}Expand description
Enum representing different profit modes
Variants§
Trait Implementations§
Source§impl Clone for ProfitMode
impl Clone for ProfitMode
Source§fn clone(&self) -> ProfitMode
fn clone(&self) -> ProfitMode
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 ProfitMode
impl Debug for ProfitMode
Source§impl Default for ProfitMode
impl Default for ProfitMode
Source§fn default() -> ProfitMode
fn default() -> ProfitMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProfitMode
impl<'de> Deserialize<'de> for ProfitMode
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<ProfitMode> for u8
impl From<ProfitMode> for u8
Source§fn from(enum_value: ProfitMode) -> Self
fn from(enum_value: ProfitMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProfitMode
impl PartialEq for ProfitMode
Source§impl Serialize for ProfitMode
impl Serialize for ProfitMode
Source§impl TryFrom<u8> for ProfitMode
impl TryFrom<u8> for ProfitMode
Source§type Error = TryFromPrimitiveError<ProfitMode>
type Error = TryFromPrimitiveError<ProfitMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ProfitMode
impl TryFromPrimitive for ProfitMode
const NAME: &'static str = "ProfitMode"
type Primitive = u8
type Error = TryFromPrimitiveError<ProfitMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ProfitMode
impl StructuralPartialEq for ProfitMode
Auto Trait Implementations§
impl Freeze for ProfitMode
impl RefUnwindSafe for ProfitMode
impl Send for ProfitMode
impl Sync for ProfitMode
impl Unpin for ProfitMode
impl UnwindSafe for ProfitMode
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