#[repr(C)]pub struct CreateAuctionArgs {
pub winners: WinnerLimit,
pub end_auction_at: Option<UnixTimestamp>,
pub end_auction_gap: Option<UnixTimestamp>,
pub token_mint: Pubkey,
pub authority: Pubkey,
pub resource: Pubkey,
pub price_floor: PriceFloor,
pub tick_size: Option<u64>,
pub gap_tick_size_percentage: Option<u8>,
}Fields§
§winners: WinnerLimitHow many winners are allowed for this auction. See AuctionData.
end_auction_at: Option<UnixTimestamp>End time is the cut-off point that the auction is forced to end by. See AuctionData.
end_auction_gap: Option<UnixTimestamp>Gap time is how much time after the previous bid where the auction ends. See AuctionData.
token_mint: PubkeyToken mint for the SPL token used for bidding.
Authority
resource: PubkeyThe resource being auctioned. See AuctionData.
price_floor: PriceFloorSet a price floor.
tick_size: Option<u64>Add a tick size increment
gap_tick_size_percentage: Option<u8>Add a minimum percentage increase each bid must meet.
Trait Implementations§
Source§impl BorshDeserialize for CreateAuctionArgs
impl BorshDeserialize for CreateAuctionArgs
Source§impl BorshSerialize for CreateAuctionArgs
impl BorshSerialize for CreateAuctionArgs
Source§impl Clone for CreateAuctionArgs
impl Clone for CreateAuctionArgs
Source§fn clone(&self) -> CreateAuctionArgs
fn clone(&self) -> CreateAuctionArgs
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 PartialEq for CreateAuctionArgs
impl PartialEq for CreateAuctionArgs
impl StructuralPartialEq for CreateAuctionArgs
Auto Trait Implementations§
impl Freeze for CreateAuctionArgs
impl RefUnwindSafe for CreateAuctionArgs
impl Send for CreateAuctionArgs
impl Sync for CreateAuctionArgs
impl Unpin for CreateAuctionArgs
impl UnwindSafe for CreateAuctionArgs
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