#[repr(C)]pub struct AuctionDataExtended {
pub total_uncancelled_bids: u64,
pub tick_size: Option<u64>,
pub gap_tick_size_percentage: Option<u8>,
pub instant_sale_price: Option<u64>,
pub name: Option<AuctionName>,
}Fields§
§total_uncancelled_bids: u64Total uncancelled bids
tick_size: Option<u64>Tick size
gap_tick_size_percentage: Option<u8>gap_tick_size_percentage - two decimal points
instant_sale_price: Option<u64>Instant sale price
name: Option<AuctionName>Auction name
Implementations§
Source§impl AuctionDataExtended
impl AuctionDataExtended
pub fn from_account_info( a: &AccountInfo<'_>, ) -> Result<AuctionDataExtended, ProgramError>
pub fn get_instant_sale_price<'a>( data: &'a Ref<'a, &'a mut [u8]>, ) -> Option<u64>
Trait Implementations§
Source§impl BorshDeserialize for AuctionDataExtendedwhere
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<u8>: BorshDeserialize,
Option<AuctionName>: BorshDeserialize,
impl BorshDeserialize for AuctionDataExtendedwhere
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<u8>: BorshDeserialize,
Option<AuctionName>: BorshDeserialize,
Source§impl BorshSerialize for AuctionDataExtendedwhere
u64: BorshSerialize,
Option<u64>: BorshSerialize,
Option<u8>: BorshSerialize,
Option<AuctionName>: BorshSerialize,
impl BorshSerialize for AuctionDataExtendedwhere
u64: BorshSerialize,
Option<u64>: BorshSerialize,
Option<u8>: BorshSerialize,
Option<AuctionName>: BorshSerialize,
Source§impl Clone for AuctionDataExtended
impl Clone for AuctionDataExtended
Source§fn clone(&self) -> AuctionDataExtended
fn clone(&self) -> AuctionDataExtended
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 AuctionDataExtended
impl Debug for AuctionDataExtended
Source§impl PartialEq for AuctionDataExtended
impl PartialEq for AuctionDataExtended
impl StructuralPartialEq for AuctionDataExtended
Auto Trait Implementations§
impl Freeze for AuctionDataExtended
impl RefUnwindSafe for AuctionDataExtended
impl Send for AuctionDataExtended
impl Sync for AuctionDataExtended
impl Unpin for AuctionDataExtended
impl UnwindSafe for AuctionDataExtended
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