[][src]Struct common::OrderId

pub struct OrderId {
    pub item_id: Vec<u8>,
    pub tx_hash: H256,
}

Fields

item_id: Vec<u8>tx_hash: H256

Methods

impl OrderId[src]

pub fn to_bytes(&self) -> Vec<u8>[src]

pub fn from_bytes(data: &[u8]) -> OrderId[src]

Trait Implementations

impl<'a> Decoder<'a> for OrderId[src]

impl Encoder for OrderId[src]

Auto Trait Implementations

impl Unpin for OrderId

impl Send for OrderId

impl Sync for OrderId

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]