pub struct AuctionOutcome<AuthId: Eq + Hash, ProductId: Eq + Hash> {
pub auths: IndexMap<AuthId, AuthOutcome, FxBuildHasher>,
pub products: IndexMap<ProductId, ProductOutcome, FxBuildHasher>,
}Expand description
Solution data for an entire auction, containing the outcome for each authorization and product in the market.
Fields§
§auths: IndexMap<AuthId, AuthOutcome, FxBuildHasher>Outcomes for each authorization, keyed by their ID
products: IndexMap<ProductId, ProductOutcome, FxBuildHasher>Outcomes for each product, keyed by their ID
Trait Implementations§
Auto Trait Implementations§
impl<AuthId, ProductId> Freeze for AuctionOutcome<AuthId, ProductId>
impl<AuthId, ProductId> RefUnwindSafe for AuctionOutcome<AuthId, ProductId>where
AuthId: RefUnwindSafe,
ProductId: RefUnwindSafe,
impl<AuthId, ProductId> Send for AuctionOutcome<AuthId, ProductId>
impl<AuthId, ProductId> Sync for AuctionOutcome<AuthId, ProductId>
impl<AuthId, ProductId> Unpin for AuctionOutcome<AuthId, ProductId>
impl<AuthId, ProductId> UnwindSafe for AuctionOutcome<AuthId, ProductId>where
AuthId: UnwindSafe,
ProductId: 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