pub struct BlockInfo {
pub block_timestamp: Option<U64Value>,
pub block_nonce: Option<U64Value>,
pub block_round: Option<U64Value>,
pub block_epoch: Option<U64Value>,
pub block_random_seed: Option<BytesValue>,
}
Fields§
§block_timestamp: Option<U64Value>
§block_nonce: Option<U64Value>
§block_round: Option<U64Value>
§block_epoch: Option<U64Value>
§block_random_seed: Option<BytesValue>
Trait Implementations§
Source§impl InterpretableFrom<BlockInfoRaw> for BlockInfo
impl InterpretableFrom<BlockInfoRaw> for BlockInfo
fn interpret_from(from: BlockInfoRaw, context: &InterpreterContext) -> Self
Source§impl IntoRaw<BlockInfoRaw> for BlockInfo
impl IntoRaw<BlockInfoRaw> for BlockInfo
fn into_raw(self) -> BlockInfoRaw
Auto Trait Implementations§
impl Freeze for BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnwindSafe for BlockInfo
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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