pub enum SecurityType {
Stock,
Option,
Future,
Index,
FuturesOption,
ForexPair,
Spread,
Warrant,
Bond,
Commodity,
News,
MutualFund,
}Expand description
SecurityType enumerates available security types
Variants§
Stock
Stock (or ETF)
Option
Option
Future
Future
Index
Index
FuturesOption
Futures option
ForexPair
Forex pair
Spread
Combo
Warrant
Warrant
Bond
Bond
Commodity
Commodity
News
News
MutualFund
Mutual fund
Implementations§
Source§impl SecurityType
impl SecurityType
pub fn from(name: &str) -> SecurityType
Trait Implementations§
Source§impl Clone for SecurityType
impl Clone for SecurityType
Source§fn clone(&self) -> SecurityType
fn clone(&self) -> SecurityType
Returns a duplicate 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 SecurityType
impl Debug for SecurityType
Source§impl Default for SecurityType
impl Default for SecurityType
Source§fn default() -> SecurityType
fn default() -> SecurityType
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityType
impl PartialEq for SecurityType
Source§impl ToString for SecurityType
impl ToString for SecurityType
impl Eq for SecurityType
impl StructuralPartialEq for SecurityType
Auto Trait Implementations§
impl Freeze for SecurityType
impl RefUnwindSafe for SecurityType
impl Send for SecurityType
impl Sync for SecurityType
impl Unpin for SecurityType
impl UnwindSafe for SecurityType
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