Struct jet_margin::AccountPositionKey
source · [−]#[repr(C)]pub struct AccountPositionKey {
pub mint: Pubkey,
pub index: usize,
}
Fields
mint: Pubkey
The address of the mint for the position token
index: usize
The array index where the data for this position is located
Trait Implementations
sourceimpl BorshDeserialize for AccountPositionKeywhere
Pubkey: BorshDeserialize,
usize: BorshDeserialize,
impl BorshDeserialize for AccountPositionKeywhere
Pubkey: BorshDeserialize,
usize: BorshDeserialize,
sourcefn 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. Read more
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.
sourceimpl BorshSerialize for AccountPositionKeywhere
Pubkey: BorshSerialize,
usize: BorshSerialize,
impl BorshSerialize for AccountPositionKeywhere
Pubkey: BorshSerialize,
usize: BorshSerialize,
sourceimpl Clone for AccountPositionKey
impl Clone for AccountPositionKey
sourcefn clone(&self) -> AccountPositionKey
fn clone(&self) -> AccountPositionKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AccountPositionKey
impl Debug for AccountPositionKey
sourceimpl Default for AccountPositionKey
impl Default for AccountPositionKey
sourcefn default() -> AccountPositionKey
fn default() -> AccountPositionKey
Returns the “default value” for a type. Read more
sourceimpl Zeroable for AccountPositionKey
impl Zeroable for AccountPositionKey
impl Copy for AccountPositionKey
impl Pod for AccountPositionKey
Auto Trait Implementations
impl RefUnwindSafe for AccountPositionKey
impl Send for AccountPositionKey
impl Sync for AccountPositionKey
impl Unpin for AccountPositionKey
impl UnwindSafe for AccountPositionKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more