pub struct AuctionOutcome<T> {
pub from: OffsetDateTime,
pub thru: OffsetDateTime,
pub outcome: Outcome<T>,
}Expand description
Provides temporal context for an outcome by associating it with a specific auction time interval.
This structure embeds an Outcome with the time range (from and thru)
of the auction that produced it, allowing for tracking outcomes across
multiple consecutive auctions.
Fields§
§from: OffsetDateTimeThe starting time of the auction interval
thru: OffsetDateTimeThe ending time of the auction interval
outcome: Outcome<T>The actual outcome (price and trade) from the auction
Trait Implementations§
Source§impl<T> ComposeSchema for AuctionOutcome<T>where
T: ToSchema,
impl<T> ComposeSchema for AuctionOutcome<T>where
T: ToSchema,
Source§impl<T: Debug> Debug for AuctionOutcome<T>
impl<T: Debug> Debug for AuctionOutcome<T>
Source§impl<'de, T> Deserialize<'de> for AuctionOutcome<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for AuctionOutcome<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Serialize for AuctionOutcome<T>where
T: Serialize,
impl<T> Serialize for AuctionOutcome<T>where
T: Serialize,
Auto Trait Implementations§
impl<T> Freeze for AuctionOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for AuctionOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for AuctionOutcome<T>where
T: Send,
impl<T> Sync for AuctionOutcome<T>where
T: Sync,
impl<T> Unpin for AuctionOutcome<T>where
T: Unpin,
impl<T> UnwindSafe for AuctionOutcome<T>where
T: 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