Struct ValueRecord

Source
pub struct ValueRecord<DateTime, Value> {
    pub valid_from: DateTime,
    pub valid_until: Option<DateTime>,
    pub value: Value,
}
Expand description

A timestamped record of a component of a user’s bid.

The interval for which the component has this value is provided alongside the value itself.

Fields§

§valid_from: DateTime

The timestamp when this change occurred

§valid_until: Option<DateTime>

The timestamp when this change was superceded

§value: Value

The component value

Auto Trait Implementations§

§

impl<DateTime, Value> Freeze for ValueRecord<DateTime, Value>
where DateTime: Freeze, Value: Freeze,

§

impl<DateTime, Value> RefUnwindSafe for ValueRecord<DateTime, Value>
where DateTime: RefUnwindSafe, Value: RefUnwindSafe,

§

impl<DateTime, Value> Send for ValueRecord<DateTime, Value>
where DateTime: Send, Value: Send,

§

impl<DateTime, Value> Sync for ValueRecord<DateTime, Value>
where DateTime: Sync, Value: Sync,

§

impl<DateTime, Value> Unpin for ValueRecord<DateTime, Value>
where DateTime: Unpin, Value: Unpin,

§

impl<DateTime, Value> UnwindSafe for ValueRecord<DateTime, Value>
where DateTime: UnwindSafe, Value: 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.