pub struct AuctionSolveRequest {
pub from: Option<OffsetDateTime>,
pub thru: OffsetDateTime,
pub by: Option<Duration>,
}Expand description
Configuration for scheduling and running a batch auction.
Flow trading uses batch auctions to clear markets at regular intervals. This structure defines the time parameters for scheduling these auctions.
Fields§
§from: Option<OffsetDateTime>The starting time of the batch; if omitted, defaults to the last batch’s ending time
thru: OffsetDateTimeThe ending time of the batch
by: Option<Duration>Optionally divide the (from, thru) interval into smaller batches with the provided duration
This allows for scheduling multiple consecutive sub-auctions within the given time range.
Trait Implementations§
Source§impl ComposeSchema for AuctionSolveRequest
impl ComposeSchema for AuctionSolveRequest
Source§impl<'de> Deserialize<'de> for AuctionSolveRequest
impl<'de> Deserialize<'de> for AuctionSolveRequest
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
Auto Trait Implementations§
impl Freeze for AuctionSolveRequest
impl RefUnwindSafe for AuctionSolveRequest
impl Send for AuctionSolveRequest
impl Sync for AuctionSolveRequest
impl Unpin for AuctionSolveRequest
impl UnwindSafe for AuctionSolveRequest
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