Struct PriceQuote
pub struct PriceQuote { /* private fields */ }Expand description
A market price paired with descriptive price-kind vocabulary.
Implementations§
§impl PriceQuote
impl PriceQuote
pub const fn new(kind: PriceKind, price: MarketPrice) -> PriceQuote
pub const fn new(kind: PriceKind, price: MarketPrice) -> PriceQuote
Creates a price quote from a kind and already validated price value.
pub const fn price(&self) -> MarketPrice
pub const fn price(&self) -> MarketPrice
Returns the quote price.
Trait Implementations§
§impl Clone for PriceQuote
impl Clone for PriceQuote
§fn clone(&self) -> PriceQuote
fn clone(&self) -> PriceQuote
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 more§impl Debug for PriceQuote
impl Debug for PriceQuote
§impl PartialEq for PriceQuote
impl PartialEq for PriceQuote
impl StructuralPartialEq for PriceQuote
Auto Trait Implementations§
impl Freeze for PriceQuote
impl RefUnwindSafe for PriceQuote
impl Send for PriceQuote
impl Sync for PriceQuote
impl Unpin for PriceQuote
impl UnsafeUnpin for PriceQuote
impl UnwindSafe for PriceQuote
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