pub struct ListState {Show 13 fields
pub discriminator: [u8; 8],
pub version: u8,
pub bump: [u8; 1],
pub owner: Pubkey,
pub asset_id: Pubkey,
pub amount: u64,
pub currency: Option<Pubkey>,
pub expiry: i64,
pub private_taker: Option<Pubkey>,
pub maker_broker: Option<Pubkey>,
pub rent_payer: NullableAddress,
pub cosigner: NullableAddress,
pub reserved1: [u8; 64],
}Fields§
§discriminator: [u8; 8]§version: u8§bump: [u8; 1]§owner: Pubkey§asset_id: Pubkey§amount: u64§currency: Option<Pubkey>§expiry: i64§private_taker: Option<Pubkey>§maker_broker: Option<Pubkey>§rent_payer: NullableAddressOwner is the rent payer when this is None. Default Pubkey represents a None value.
cosigner: NullableAddressCosigner Default Pubkey represents a None value.
reserved1: [u8; 64]Implementations§
Source§impl ListState
impl ListState
Sourcepub const PREFIX: &'static [u8]
pub const PREFIX: &'static [u8]
Prefix values used to generate a PDA for this account.
Values are positional and appear in the following order:
ListState::PREFIX- mint (
Pubkey)
pub fn create_pda(mint: Pubkey, bump: u8) -> Result<Pubkey, PubkeyError>
pub fn find_pda(mint: &Pubkey) -> (Pubkey, u8)
pub fn from_bytes(data: &[u8]) -> Result<Self, Error>
Trait Implementations§
Source§impl BorshDeserialize for ListStatewhere
[u8; 8]: BorshDeserialize,
u8: BorshDeserialize,
[u8; 1]: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
i64: BorshDeserialize,
NullableAddress: BorshDeserialize,
[u8; 64]: BorshDeserialize,
impl BorshDeserialize for ListStatewhere
[u8; 8]: BorshDeserialize,
u8: BorshDeserialize,
[u8; 1]: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
i64: BorshDeserialize,
NullableAddress: BorshDeserialize,
[u8; 64]: BorshDeserialize,
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 ListStatewhere
[u8; 8]: BorshSerialize,
u8: BorshSerialize,
[u8; 1]: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
Option<Pubkey>: BorshSerialize,
i64: BorshSerialize,
NullableAddress: BorshSerialize,
[u8; 64]: BorshSerialize,
impl BorshSerialize for ListStatewhere
[u8; 8]: BorshSerialize,
u8: BorshSerialize,
[u8; 1]: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
Option<Pubkey>: BorshSerialize,
i64: BorshSerialize,
NullableAddress: BorshSerialize,
[u8; 64]: BorshSerialize,
Source§impl<'a> TryFrom<&AccountInfo<'a>> for ListState
impl<'a> TryFrom<&AccountInfo<'a>> for ListState
impl Eq for ListState
impl StructuralPartialEq for ListState
Auto Trait Implementations§
impl Freeze for ListState
impl RefUnwindSafe for ListState
impl Send for ListState
impl Sync for ListState
impl Unpin for ListState
impl UnwindSafe for ListState
Blanket Implementations§
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<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