Skip to main content

Lot

Struct Lot 

Source
pub struct Lot<'i, Deco: Decoration> {
    pub price: Option<Deco::Decorated<Exchange<'i>>>,
    pub date: Option<NaiveDate>,
    pub note: Option<Cow<'i, str>>,
}
Expand description

Lot information is a set of metadata to record the original lot which the commodity is acquired with.

Fields§

§price: Option<Deco::Decorated<Exchange<'i>>>§date: Option<NaiveDate>§note: Option<Cow<'i, str>>

Trait Implementations§

Source§

impl<'i, Deco: Decoration> Debug for Lot<'i, Deco>

Source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Deco: Decoration> Default for Lot<'_, Deco>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'i, Deco: Decoration> Eq for Lot<'i, Deco>

Source§

impl<'i, Deco: Decoration> PartialEq for Lot<'i, Deco>

Source§

fn eq(&self, __other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

§

impl<'i, Deco> Freeze for Lot<'i, Deco>
where Option<<Deco as Decoration>::Decorated<Exchange<'i>>>: Freeze,

§

impl<'i, Deco> RefUnwindSafe for Lot<'i, Deco>

§

impl<'i, Deco> Send for Lot<'i, Deco>
where Option<<Deco as Decoration>::Decorated<Exchange<'i>>>: Send,

§

impl<'i, Deco> Sync for Lot<'i, Deco>
where Option<<Deco as Decoration>::Decorated<Exchange<'i>>>: Sync,

§

impl<'i, Deco> Unpin for Lot<'i, Deco>
where Option<<Deco as Decoration>::Decorated<Exchange<'i>>>: Unpin,

§

impl<'i, Deco> UnsafeUnpin for Lot<'i, Deco>

§

impl<'i, Deco> UnwindSafe for Lot<'i, Deco>
where Option<<Deco as Decoration>::Decorated<Exchange<'i>>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.