#[non_exhaustive]pub struct GasAuction {
pub start_time_seconds: u64,
pub duration_seconds: u64,
pub start_gas: Dec,
pub current_gas: Option<Dec>,
pub end_gas: Option<Dec>,
}Expand description
One round of a deploy auction. Seconds, not milliseconds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_time_seconds: u64When the round started, Unix seconds.
duration_seconds: u64How long the round runs, in seconds.
start_gas: DecThe price the round opened at, in HYPE.
current_gas: Option<Dec>What a slot costs now, in HYPE; null once the round has ended.
end_gas: Option<Dec>What the slot sold at, once it sold.
Implementations§
Source§impl GasAuction
impl GasAuction
Trait Implementations§
Source§impl Clone for GasAuction
impl Clone for GasAuction
Source§impl Debug for GasAuction
impl Debug for GasAuction
Source§impl<'de> Deserialize<'de> for GasAuction
impl<'de> Deserialize<'de> for GasAuction
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
impl Eq for GasAuction
Source§impl PartialEq for GasAuction
impl PartialEq for GasAuction
impl StructuralPartialEq for GasAuction
Auto Trait Implementations§
impl Forget for GasAuction
impl Freeze for GasAuction
impl Move for GasAuction
impl RefUnwindSafe for GasAuction
impl Send for GasAuction
impl Sync for GasAuction
impl Unpin for GasAuction
impl UnsafeUnpin for GasAuction
impl UnwindSafe for GasAuction
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.