Struct RawAuctionInput

Source
pub struct RawAuctionInput<AuctionId> {
    pub id: AuctionId,
    pub from: OffsetDateTime,
    pub thru: OffsetDateTime,
    pub auths: Vec<AuthRecord>,
    pub costs: Vec<CostRecord>,
    pub trade_duration: Duration,
}
Expand description

A struct containing the raw auth and cost records for the stated auction interval.

This structure collects all the inputs needed to solve an auction for a specific time interval. It contains all auths and costs that are active during the interval, as well as timing information needed to scale rate-based quantities appropriately.

Fields§

§id: AuctionId

An internal auction id

§from: OffsetDateTime

The start time for this batch

§thru: OffsetDateTime

The end time for this batch

§auths: Vec<AuthRecord>

All appropriate auth records for the interval

§costs: Vec<CostRecord>

All appropriate cost records for the interval

§trade_duration: Duration

The reference time that all rate-based quantities are defined with respect to

Trait Implementations§

Source§

impl<T> Into<Vec<Submission<AuthId, ProductId>>> for RawAuctionInput<T>

Source§

fn into(self) -> Vec<Submission<AuthId, ProductId>>

Converts this type into the (usually inferred) input type.

Auto Trait Implementations§

§

impl<AuctionId> Freeze for RawAuctionInput<AuctionId>
where AuctionId: Freeze,

§

impl<AuctionId> RefUnwindSafe for RawAuctionInput<AuctionId>
where AuctionId: RefUnwindSafe,

§

impl<AuctionId> Send for RawAuctionInput<AuctionId>
where AuctionId: Send,

§

impl<AuctionId> Sync for RawAuctionInput<AuctionId>
where AuctionId: Sync,

§

impl<AuctionId> Unpin for RawAuctionInput<AuctionId>
where AuctionId: Unpin,

§

impl<AuctionId> UnwindSafe for RawAuctionInput<AuctionId>
where AuctionId: 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.