pub struct LimitV2CreateArgs {
pub unique_id: Option<i64>,
pub making_amount: i64,
pub taking_amount: i64,
pub expired_at: Option<i64>,
pub fee_bps: Option<i16>,
}Expand description
Parsed arguments from an InitializeOrder instruction (Limit v2).
fee_bps and unique_id are v2-specific fields not present in v1.
Fields§
§unique_id: Option<i64>§making_amount: i64§taking_amount: i64§expired_at: Option<i64>§fee_bps: Option<i16>Auto Trait Implementations§
impl Freeze for LimitV2CreateArgs
impl RefUnwindSafe for LimitV2CreateArgs
impl Send for LimitV2CreateArgs
impl Sync for LimitV2CreateArgs
impl Unpin for LimitV2CreateArgs
impl UnsafeUnpin for LimitV2CreateArgs
impl UnwindSafe for LimitV2CreateArgs
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