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 Seat
impl BorshDeserialize for Seat
Source§impl BorshSerialize for Seat
impl BorshSerialize for Seat
Source§impl ZeroCopy for Seat
impl ZeroCopy for Seat
fn load_mut_bytes(data: &mut [u8]) -> Option<&mut Self>
fn load_bytes(data: &[u8]) -> Option<&Self>
impl Copy for Seat
impl Pod for Seat
Auto Trait Implementations§
impl Freeze for Seat
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,
Source§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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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