pub struct AggregateOrders {
pub outputs: HashMap<(u64, Address), HashMap<Address, U256>>,
pub inputs: HashMap<Address, U256>,
}Expand description
Aggregated orders for a transaction or set of transactions.
Fields§
§outputs: HashMap<(u64, Address), HashMap<Address, U256>>Outputs to be transferred to the user. These may be on the rollup or the host or potentially elsewhere in the future.
inputs: HashMap<Address, U256>Inputs to be transferred to the filler. These are always on the rollup.
Implementations§
Source§impl AggregateOrders
impl AggregateOrders
Sourcepub fn new() -> Self
pub fn new() -> Self
Instantiate a new AggregateOrders.
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Instantiate a new AggregateOrders with a custom capacity. The
capcity is for the number of assets in inputs or outputs.
Sourcepub fn extend<'a>(&mut self, orders: impl IntoIterator<Item = &'a Order>)
pub fn extend<'a>(&mut self, orders: impl IntoIterator<Item = &'a Order>)
Extend the orders with a new set of orders.
Trait Implementations§
Source§impl Clone for AggregateOrders
impl Clone for AggregateOrders
Source§fn clone(&self) -> AggregateOrders
fn clone(&self) -> AggregateOrders
Returns a duplicate 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 AggregateOrders
impl Debug for AggregateOrders
Source§impl Default for AggregateOrders
impl Default for AggregateOrders
Source§fn default() -> AggregateOrders
fn default() -> AggregateOrders
Returns the “default value” for a type. Read more
Source§impl<'a> FromIterator<&'a Order> for AggregateOrders
impl<'a> FromIterator<&'a Order> for AggregateOrders
Source§impl PartialEq for AggregateOrders
impl PartialEq for AggregateOrders
impl Eq for AggregateOrders
impl StructuralPartialEq for AggregateOrders
Auto Trait Implementations§
impl Freeze for AggregateOrders
impl RefUnwindSafe for AggregateOrders
impl Send for AggregateOrders
impl Sync for AggregateOrders
impl Unpin for AggregateOrders
impl UnwindSafe for AggregateOrders
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<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreCreates a shared type from an unshared type.