Struct jet_fixed_term::orderbook::state::EventAdapterMetadata
source · [−]#[repr(C)]pub struct EventAdapterMetadata {
pub owner: Pubkey,
pub market: Pubkey,
pub orderbook_user: Pubkey,
}
Fields
owner: Pubkey
Signing authority over this Adapter
market: Pubkey
The Market
this adapter belongs to
orderbook_user: Pubkey
The MarginUser
account this adapter is registered for
Implementations
Trait Implementations
sourceimpl AccountDeserialize for EventAdapterMetadata
impl AccountDeserialize for EventAdapterMetadata
sourcefn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint
account into a token
Account
. Read moresourcefn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed. Read more
sourceimpl Clone for EventAdapterMetadata
impl Clone for EventAdapterMetadata
sourcefn clone(&self) -> EventAdapterMetadata
fn clone(&self) -> EventAdapterMetadata
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 Discriminator for EventAdapterMetadata
impl Discriminator for EventAdapterMetadata
fn discriminator() -> [u8; 8]
sourceimpl Owner for EventAdapterMetadata
impl Owner for EventAdapterMetadata
sourceimpl Zeroable for EventAdapterMetadata
impl Zeroable for EventAdapterMetadata
impl Copy for EventAdapterMetadata
impl Pod for EventAdapterMetadata
impl ZeroCopy for EventAdapterMetadata
Auto Trait Implementations
impl RefUnwindSafe for EventAdapterMetadata
impl Send for EventAdapterMetadata
impl Sync for EventAdapterMetadata
impl Unpin for EventAdapterMetadata
impl UnwindSafe for EventAdapterMetadata
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