pub struct UpdateOrderParams {
pub size_delta_value: Option<u128>,
pub acceptable_price: Option<u128>,
pub trigger_price: Option<u128>,
pub min_output: Option<u128>,
pub valid_from_ts: Option<i64>,
}
Expand description
Update Order Params.
Fields§
§size_delta_value: Option<u128>
Size delta in USD.
acceptable_price: Option<u128>
Acceptable price.
trigger_price: Option<u128>
Trigger price.
min_output: Option<u128>
Min output amount.
valid_from_ts: Option<i64>
Valid from this timestamp.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for UpdateOrderParams
impl BorshDeserialize for UpdateOrderParams
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for UpdateOrderParams
impl BorshSerialize for UpdateOrderParams
Source§impl Clone for UpdateOrderParams
impl Clone for UpdateOrderParams
Source§fn clone(&self) -> UpdateOrderParams
fn clone(&self) -> UpdateOrderParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UpdateOrderParams
impl Debug for UpdateOrderParams
Source§impl Space for UpdateOrderParams
impl Space for UpdateOrderParams
const INIT_SPACE: usize = 77usize
impl Copy for UpdateOrderParams
Auto Trait Implementations§
impl Freeze for UpdateOrderParams
impl RefUnwindSafe for UpdateOrderParams
impl Send for UpdateOrderParams
impl Sync for UpdateOrderParams
impl Unpin for UpdateOrderParams
impl UnwindSafe for UpdateOrderParams
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> 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