#[repr(C)]pub struct Seat {
pub discriminant: u64,
pub market: Pubkey,
pub trader: Pubkey,
pub approval_status: u64,
/* private fields */
}Expand description
This struct represents the state of a seat. Only traders with seats can place limit orders on the market. The seat is valid when the approval_status field is set to Approved. The initial state is NotApproved, and the seat will be retired if it is a Retired state.
Fields§
§discriminant: u64§market: Pubkey§trader: Pubkey§approval_status: u64Implementations§
Trait Implementations§
source§impl BorshDeserialize for Seatwhere
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
[u64; 6]: BorshDeserialize,
impl BorshDeserialize for Seatwhere u64: BorshDeserialize, Pubkey: BorshDeserialize, [u64; 6]: BorshDeserialize,
source§impl BorshSerialize for Seatwhere
u64: BorshSerialize,
Pubkey: BorshSerialize,
[u64; 6]: BorshSerialize,
impl BorshSerialize for Seatwhere u64: BorshSerialize, Pubkey: BorshSerialize, [u64; 6]: BorshSerialize,
impl Copy for Seat
impl Pod for Seat
Auto Trait Implementations§
impl RefUnwindSafe for Seat
impl Send for Seat
impl Sync for Seat
impl Unpin for Seat
impl UnwindSafe for Seat
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> 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.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.