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: AuctionIdAn internal auction id
from: OffsetDateTimeThe start time for this batch
thru: OffsetDateTimeThe 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: DurationThe 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>
impl<T> Into<Vec<Submission<AuthId, ProductId>>> for RawAuctionInput<T>
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> 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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