#[repr(C)]pub enum PriceFloor {
None([u8; 32]),
MinimumPrice([u64; 4]),
BlindedPrice(Hash),
}Expand description
Structure with pricing floor data.
Variants§
None([u8; 32])
Due to borsh on the front end disallowing different arguments in enums, we have to make sure data is same size across all three No price floor, any bid is valid.
MinimumPrice([u64; 4])
Explicit minimum price, any bid below this is rejected.
BlindedPrice(Hash)
Hidden minimum price, revealed at the end of the auction.
Trait Implementations§
Source§impl BorshDeserialize for PriceFloor
impl BorshDeserialize for PriceFloor
Source§impl BorshSerialize for PriceFloor
impl BorshSerialize for PriceFloor
Source§impl Clone for PriceFloor
impl Clone for PriceFloor
Source§fn clone(&self) -> PriceFloor
fn clone(&self) -> PriceFloor
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 PriceFloor
impl Debug for PriceFloor
Source§impl PartialEq for PriceFloor
impl PartialEq for PriceFloor
impl StructuralPartialEq for PriceFloor
Auto Trait Implementations§
impl Freeze for PriceFloor
impl RefUnwindSafe for PriceFloor
impl Send for PriceFloor
impl Sync for PriceFloor
impl Unpin for PriceFloor
impl UnwindSafe for PriceFloor
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