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