Trait borsh::de::BorshDeserialize[][src]

pub trait BorshDeserialize: Sized {
    fn deserialize(buf: &mut &[u8]) -> Result<Self>;

    fn try_from_slice(v: &[u8]) -> Result<Self> { ... }
}
Expand description

A data-structure that can be de-serialized from binary format by NBOR.

Required methods

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes.

Provided methods

Deserialize this instance from a slice of bytes.

Implementations on Foreign Types

Implementors

impl BorshDeserialize for AgnosticOrderbookInstruction where
    Params: BorshDeserialize,
    Params: BorshDeserialize,
    Params: BorshDeserialize,
    Params: BorshDeserialize

impl BorshDeserialize for AccountTag

impl BorshDeserialize for Side

impl BorshDeserialize for SelfTradeBehavior

impl BorshDeserialize for MarketState where
    AccountTag: BorshDeserialize,
    Pubkey: BorshDeserialize,
    Pubkey: BorshDeserialize,
    Pubkey: BorshDeserialize,
    Pubkey: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize

impl BorshDeserialize for Event where
    Side: BorshDeserialize,
    u128: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    Vec<u8>: BorshDeserialize,
    Vec<u8>: BorshDeserialize,
    Side: BorshDeserialize,
    u128: BorshDeserialize,
    u64: BorshDeserialize,
    bool: BorshDeserialize,
    Vec<u8>: BorshDeserialize

impl BorshDeserialize for EventQueueHeader where
    AccountTag: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u32: BorshDeserialize

impl BorshDeserialize for OrderSummary where
    Option<u128>: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize

impl BorshDeserialize for Params where
    u128: BorshDeserialize

impl BorshDeserialize for Params

impl BorshDeserialize for Params where
    u64: BorshDeserialize

impl BorshDeserialize for Params where
    Pubkey: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize

impl BorshDeserialize for Params where
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    u64: BorshDeserialize,
    Side: BorshDeserialize,
    u64: BorshDeserialize,
    Vec<u8>: BorshDeserialize,
    bool: BorshDeserialize,
    bool: BorshDeserialize,
    SelfTradeBehavior: BorshDeserialize

impl BorshDeserialize for Hash

impl BorshDeserialize for Hash

impl BorshDeserialize for Pubkey

impl BorshDeserialize for Secp256k1Pubkey