#[repr(C)]pub struct BidderMetadata {
pub bidder_pubkey: Pubkey,
pub auction_pubkey: Pubkey,
pub last_bid: u64,
pub last_bid_timestamp: UnixTimestamp,
pub cancelled: bool,
}Expand description
Models a set of metadata for a bidder, meant to be stored in a PDA. This allows looking up information about a bidder regardless of if they have won, lost or cancelled.
Fields§
§bidder_pubkey: Pubkey§auction_pubkey: Pubkey§last_bid: u64§last_bid_timestamp: UnixTimestamp§cancelled: boolImplementations§
Source§impl BidderMetadata
impl BidderMetadata
pub fn from_account_info( a: &AccountInfo<'_>, ) -> Result<BidderMetadata, ProgramError>
Trait Implementations§
Source§impl BorshDeserialize for BidderMetadata
impl BorshDeserialize for BidderMetadata
Source§impl BorshSerialize for BidderMetadatawhere
Pubkey: BorshSerialize,
u64: BorshSerialize,
UnixTimestamp: BorshSerialize,
bool: BorshSerialize,
impl BorshSerialize for BidderMetadatawhere
Pubkey: BorshSerialize,
u64: BorshSerialize,
UnixTimestamp: BorshSerialize,
bool: BorshSerialize,
Source§impl Clone for BidderMetadata
impl Clone for BidderMetadata
Source§fn clone(&self) -> BidderMetadata
fn clone(&self) -> BidderMetadata
Returns a duplicate 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 BidderMetadata
impl Debug for BidderMetadata
Source§impl PartialEq for BidderMetadata
impl PartialEq for BidderMetadata
impl StructuralPartialEq for BidderMetadata
Auto Trait Implementations§
impl Freeze for BidderMetadata
impl RefUnwindSafe for BidderMetadata
impl Send for BidderMetadata
impl Sync for BidderMetadata
impl Unpin for BidderMetadata
impl UnwindSafe for BidderMetadata
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<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