#[repr(C)]pub struct ActionHeader {
pub id: u64,
pub store: Pubkey,
pub market: Pubkey,
pub owner: Pubkey,
pub nonce: [u8; 32],
/* private fields */
}
Expand description
Action Header.
Fields§
§id: u64
Action id.
store: Pubkey
Store.
market: Pubkey
Market.
owner: Pubkey
Owner.
nonce: [u8; 32]
Nonce bytes.
Implementations§
Source§impl ActionHeader
impl ActionHeader
Sourcepub fn action_state(&self) -> Result<ActionState>
pub fn action_state(&self) -> Result<ActionState>
Get action state.
pub fn id(&self) -> u64
Sourcepub fn max_execution_lamports(&self) -> u64
pub fn max_execution_lamports(&self) -> u64
Get max execution lamports.
Sourcepub fn updated_at(&self) -> i64
pub fn updated_at(&self) -> i64
Get last updated timestamp.
Sourcepub fn updated_at_slot(&self) -> u64
pub fn updated_at_slot(&self) -> u64
Get last updated slot.
Sourcepub fn creator(&self) -> &Pubkey
pub fn creator(&self) -> &Pubkey
Get the creator. We assume that the action account’s address is derived from that address.
Sourcepub fn rent_receiver(&self) -> &Pubkey
pub fn rent_receiver(&self) -> &Pubkey
Get the rent receiver.
Sourcepub fn should_unwrap_native_token(&self) -> bool
pub fn should_unwrap_native_token(&self) -> bool
Returns whether the native token should be unwrapped.
Trait Implementations§
Source§impl Clone for ActionHeader
impl Clone for ActionHeader
Source§fn clone(&self) -> ActionHeader
fn clone(&self) -> ActionHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ActionHeader
impl Debug for ActionHeader
Source§impl Default for ActionHeader
impl Default for ActionHeader
Source§impl<'de> Deserialize<'de> for ActionHeader
impl<'de> Deserialize<'de> for ActionHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ActionHeader
impl Serialize for ActionHeader
impl Copy for ActionHeader
impl Pod for ActionHeader
Auto Trait Implementations§
impl Freeze for ActionHeader
impl RefUnwindSafe for ActionHeader
impl Send for ActionHeader
impl Sync for ActionHeader
impl Unpin for ActionHeader
impl UnwindSafe for ActionHeader
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
§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
.§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