Struct serum_dex::state::MarketState [−][src]
#[repr(packed)]pub struct MarketState {}Show fields
pub account_flags: u64, pub own_address: [u64; 4], pub vault_signer_nonce: u64, pub coin_mint: [u64; 4], pub pc_mint: [u64; 4], pub coin_vault: [u64; 4], pub coin_deposits_total: u64, pub coin_fees_accrued: u64, pub pc_vault: [u64; 4], pub pc_deposits_total: u64, pub pc_fees_accrued: u64, pub pc_dust_threshold: u64, pub req_q: [u64; 4], pub event_q: [u64; 4], pub bids: [u64; 4], pub asks: [u64; 4], pub coin_lot_size: u64, pub pc_lot_size: u64, pub fee_rate_bps: u64, pub referrer_rebates_accrued: u64,
Fields
account_flags: u64
own_address: [u64; 4]
vault_signer_nonce: u64
coin_mint: [u64; 4]
pc_mint: [u64; 4]
coin_vault: [u64; 4]
coin_deposits_total: u64
coin_fees_accrued: u64
pc_vault: [u64; 4]
pc_deposits_total: u64
pc_fees_accrued: u64
pc_dust_threshold: u64
req_q: [u64; 4]
event_q: [u64; 4]
bids: [u64; 4]
asks: [u64; 4]
coin_lot_size: u64
pc_lot_size: u64
fee_rate_bps: u64
referrer_rebates_accrued: u64
Implementations
impl MarketState
[src]
impl MarketState
[src]pub fn load<'a>(
market_account: &'a AccountInfo<'_>,
program_id: &Pubkey
) -> DexResult<RefMut<'a, Self>>
[src]
market_account: &'a AccountInfo<'_>,
program_id: &Pubkey
) -> DexResult<RefMut<'a, Self>>
pub fn check_flags(&self) -> DexResult
[src]
pub fn load_orders_mut<'a>(
&self,
orders_account: &'a AccountInfo<'_>,
owner_account: Option<&AccountInfo<'_>>,
program_id: &Pubkey,
rent: Option<Rent>
) -> DexResult<RefMut<'a, OpenOrders>>
[src]
&self,
orders_account: &'a AccountInfo<'_>,
owner_account: Option<&AccountInfo<'_>>,
program_id: &Pubkey,
rent: Option<Rent>
) -> DexResult<RefMut<'a, OpenOrders>>
Trait Implementations
impl Clone for MarketState
[src]
impl Clone for MarketState
[src]fn clone(&self) -> MarketState
[src]
fn clone(&self) -> MarketState
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MarketState
[src]
impl Debug for MarketState
[src]impl Copy for MarketState
[src]
impl Pod for MarketState
[src]
impl TriviallyTransmutable for MarketState
[src]
Auto Trait Implementations
impl RefUnwindSafe for MarketState
impl Send for MarketState
impl Sync for MarketState
impl Unpin for MarketState
impl UnwindSafe for MarketState
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,