Struct totem_primitives::orders::OrderHeader
source · [−]pub struct OrderHeader<AccountId> {
pub commander: AccountId,
pub fulfiller: AccountId,
pub approver: AccountId,
pub order_status: u16,
pub approval_status: ApprovalStatus,
pub buy_or_sell: u16,
pub amount: i128,
pub market_order: bool,
pub order_type: u16,
pub deadline: u32,
pub due_date: u32,
}
Expand description
The order header: contains common values for all items.
Fields
commander: AccountId
fulfiller: AccountId
approver: AccountId
order_status: u16
approval_status: ApprovalStatus
buy_or_sell: u16
amount: i128
market_order: bool
order_type: u16
deadline: u32
due_date: u32
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<AccountId> EncodeLike<OrderHeader<AccountId>> for OrderHeader<AccountId> where
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
AccountId: Encode,
Auto Trait Implementations
impl<AccountId> RefUnwindSafe for OrderHeader<AccountId> where
AccountId: RefUnwindSafe,
impl<AccountId> Send for OrderHeader<AccountId> where
AccountId: Send,
impl<AccountId> Sync for OrderHeader<AccountId> where
AccountId: Sync,
impl<AccountId> Unpin for OrderHeader<AccountId> where
AccountId: Unpin,
impl<AccountId> UnwindSafe for OrderHeader<AccountId> where
AccountId: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn blake2_128_concat(&self) -> Vec<u8, Global>ⓘ
pub fn twox_64_concat(&self) -> Vec<u8, Global>ⓘ
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more