pub struct NeoBlock {Show 14 fields
pub hash: H256,
pub size: i32,
pub version: i32,
pub prev_block_hash: H256,
pub merkle_root_hash: H256,
pub time: i32,
pub nonce: String,
pub index: i32,
pub primary: Option<i32>,
pub next_consensus: String,
pub witnesses: Option<Vec<NeoWitness>>,
pub transactions: Option<Vec<RTransaction>>,
pub confirmations: i32,
pub next_block_hash: Option<H256>,
}
Fields§
§hash: H256
§size: i32
§version: i32
§prev_block_hash: H256
§merkle_root_hash: H256
§time: i32
§nonce: String
§index: i32
§primary: Option<i32>
§next_consensus: String
§witnesses: Option<Vec<NeoWitness>>
§transactions: Option<Vec<RTransaction>>
§confirmations: i32
§next_block_hash: Option<H256>
Implementations§
Source§impl NeoBlock
impl NeoBlock
pub fn get_nonce_as_u64(&self) -> Result<u64, ParseIntError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NeoBlock
impl<'de> Deserialize<'de> for NeoBlock
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
Auto Trait Implementations§
impl Freeze for NeoBlock
impl RefUnwindSafe for NeoBlock
impl Send for NeoBlock
impl Sync for NeoBlock
impl Unpin for NeoBlock
impl UnwindSafe for NeoBlock
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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