pub struct BatchModify { /* private fields */ }Expand description
batchModify: {type, modifies: [{oid, order}], a?}. a (always place: the new order goes on
whether or not the old one was still there) is written last and only when set, and set
whenever a new order is a trigger, since the venue refuses a trigger without it.
Implementations§
Source§impl BatchModify
impl BatchModify
Sourcepub fn new(modifies: Vec<Modify>) -> BatchModify
pub fn new(modifies: Vec<Modify>) -> BatchModify
Each modify in one action; always places when any new order is a trigger.
Sourcepub fn always_place(self) -> BatchModify
pub fn always_place(self) -> BatchModify
Places the new orders even where the old ones are gone.
Sourcepub const fn is_always_place(&self) -> bool
pub const fn is_always_place(&self) -> bool
Whether a is set: the new orders go on even where the old ones are gone.
Trait Implementations§
Source§impl Clone for BatchModify
impl Clone for BatchModify
Source§impl Debug for BatchModify
impl Debug for BatchModify
impl Eq for BatchModify
Source§impl From<BatchModify> for TradeAction
impl From<BatchModify> for TradeAction
Source§fn from(action: BatchModify) -> TradeAction
fn from(action: BatchModify) -> TradeAction
Converts to this type from the input type.
Source§impl L1Action for BatchModify
impl L1Action for BatchModify
Source§fn action(&self) -> Map
fn action(&self) -> Map
The action’s keys and values in wire order, which is the hashed order.
Source§fn msgpack(&self) -> Vec<u8> ⓘ
fn msgpack(&self) -> Vec<u8> ⓘ
The action as msgpack bytes, the first part of the connection id’s hash.
Source§fn typed(
&self,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> TypedStruct<'static>
fn typed( &self, nonce: u64, vault: Option<Address>, network: Network, ) -> TypedStruct<'static>
The phantom agent struct the key signs for this action.
Source§fn digest(
&self,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> [u8; 32]
fn digest( &self, nonce: u64, vault: Option<Address>, network: Network, ) -> [u8; 32]
What the key signs for this action: the phantom agent’s digest under
Domain::EXCHANGE.Source§impl PartialEq for BatchModify
impl PartialEq for BatchModify
impl StructuralPartialEq for BatchModify
Auto Trait Implementations§
impl Forget for BatchModify
impl Freeze for BatchModify
impl Move for BatchModify
impl RefUnwindSafe for BatchModify
impl Send for BatchModify
impl Sync for BatchModify
impl Unpin for BatchModify
impl UnsafeUnpin for BatchModify
impl UnwindSafe for BatchModify
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.