pub struct Market {Show 19 fields
pub discriminator: AccountDiscriminator,
pub bump: [u8; 1],
pub cu_penalty_multiplier: u8,
pub max_inventory_imbalance_guard_per_cent: u8,
pub id: u32,
pub authority: Pubkey,
pub updater: Pubkey,
pub mint_a: Pubkey,
pub mint_b: Pubkey,
pub sequence: u64,
pub valid_until: u64,
pub oracle: [u8; 512],
pub min_spread_guard_per_m: i32,
pub arb_penalty_per_m: u32,
pub jitodontfront_penalty_per_m: u32,
pub padding1: [u8; 12],
pub min_oracle_price_guard: u128,
pub max_oracle_price_guard: u128,
pub padding2: [u8; 304],
}Fields§
§discriminator: AccountDiscriminator§bump: [u8; 1]§cu_penalty_multiplier: u8§max_inventory_imbalance_guard_per_cent: u8§id: u32§updater: Pubkey§mint_a: Pubkey§mint_b: Pubkey§sequence: u64§valid_until: u64§oracle: [u8; 512]§min_spread_guard_per_m: i32§arb_penalty_per_m: u32§jitodontfront_penalty_per_m: u32§padding1: [u8; 12]§min_oracle_price_guard: u128§max_oracle_price_guard: u128§padding2: [u8; 304]Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Market
impl BorshDeserialize for Market
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Market
impl BorshSerialize for Market
Source§impl<'a> TryFrom<&AccountInfo<'a>> for Market
impl<'a> TryFrom<&AccountInfo<'a>> for Market
impl Eq for Market
impl StructuralPartialEq for Market
Auto Trait Implementations§
impl Freeze for Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnsafeUnpin for Market
impl UnwindSafe for Market
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§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 more