pub struct TradeEvent { /* private fields */ }Implementations§
Source§impl TradeEvent
impl TradeEvent
pub fn amount_in_usd<T>(self, value: T) -> Self
pub fn base_amount<T>(self, value: T) -> Self
pub fn buy_cost_usd<T>(self, value: T) -> Self
pub fn event<T>(self, value: T) -> Self
pub fn id<T>(self, value: T) -> Self
pub fn maker<T>(self, value: T) -> Self
pub fn price_in_usd<T>(self, value: T) -> Self
pub fn quote_address<T>(self, value: T) -> Self
pub fn quote_amount<T>(self, value: T) -> Self
pub fn quote_symbol<T>(self, value: T) -> Self
pub fn timestamp<T>(self, value: T) -> Self
pub fn token_address<T>(self, value: T) -> Self
pub fn tx_hash<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for TradeEvent
impl Clone for TradeEvent
Source§fn clone(&self) -> TradeEvent
fn clone(&self) -> TradeEvent
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 TradeEvent
impl Debug for TradeEvent
Source§impl Default for TradeEvent
impl Default for TradeEvent
Source§impl From<TradeEvent> for TradeEvent
impl From<TradeEvent> for TradeEvent
Source§fn from(value: TradeEvent) -> Self
fn from(value: TradeEvent) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TradeEvent> for TradeEvent
impl TryFrom<TradeEvent> for TradeEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TradeEvent) -> Result<Self, ConversionError>
fn try_from(value: TradeEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TradeEvent
impl RefUnwindSafe for TradeEvent
impl Send for TradeEvent
impl Sync for TradeEvent
impl Unpin for TradeEvent
impl UnwindSafe for TradeEvent
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