pub struct GatData {
pub order: GpV2OrderStruct,
pub start_time: u32,
pub tx_deadline: u32,
}Expand description
Parameters for a GoodAfterTime (GAT) conditional order.
A GAT order wraps a regular GPv2Order and adds two time constraints:
- The order is not valid before
start_time. - The settling transaction must be submitted before
tx_deadlineto be accepted by the handler.
Fields§
§order: GpV2OrderStructThe underlying GPv2Order that will be submitted when the time window
is active.
start_time: u32Unix timestamp before which the order is not valid.
tx_deadline: u32Absolute Unix timestamp by which the settlement transaction must be
included (block.timestamp ≤ tx_deadline).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GatData
impl RefUnwindSafe for GatData
impl Send for GatData
impl Sync for GatData
impl Unpin for GatData
impl UnsafeUnpin for GatData
impl UnwindSafe for GatData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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