pub enum TransactionType {
Buy,
Sell,
Award,
Exercise,
Gift,
Conversion,
Other(String),
}Expand description
Transaction types for insider activities with canonical variants and extensible fallback.
This enum provides type-safe handling of transaction types while gracefully
handling unknown or provider-specific transaction types through the Other variant.
Variants§
Buy
Purchase or acquisition of shares
Sell
Sale or disposal of shares
Award
Stock award or grant
Exercise
Exercise of options
Gift
Gift of shares
Conversion
Conversion of securities
Other(String)
Unknown or provider-specific transaction type
Trait Implementations§
Source§impl AsRef<str> for TransactionType
impl AsRef<str> for TransactionType
Source§impl Clone for TransactionType
impl Clone for TransactionType
Source§fn clone(&self) -> TransactionType
fn clone(&self) -> TransactionType
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 TransactionType
impl Debug for TransactionType
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 Display for TransactionType
impl Display for TransactionType
Source§impl From<String> for TransactionType
impl From<String> for TransactionType
Source§impl From<TransactionType> for String
impl From<TransactionType> for String
Source§fn from(transaction_type: TransactionType) -> Self
fn from(transaction_type: TransactionType) -> Self
Converts to this type from the input type.
Source§impl FromStr for TransactionType
impl FromStr for TransactionType
Source§impl Hash for TransactionType
impl Hash for TransactionType
Source§impl PartialEq for TransactionType
impl PartialEq for TransactionType
Source§impl Serialize for TransactionType
impl Serialize for TransactionType
Source§impl TryFrom<&str> for TransactionType
impl TryFrom<&str> for TransactionType
impl Eq for TransactionType
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