pub struct PartialBlockIdentifier {
pub index: Option<u64>,
pub hash: Option<String>,
}Expand description
PartialBlockIdentifier : When fetching data by BlockIdentifier, it may be possible to only specify the index or hash. If neither property is specified, it is assumed that the client is making a request at the current block.
Fields§
§index: Option<u64>§hash: Option<String>Implementations§
source§impl PartialBlockIdentifier
impl PartialBlockIdentifier
sourcepub fn new() -> PartialBlockIdentifier
pub fn new() -> PartialBlockIdentifier
When fetching data by BlockIdentifier, it may be possible to only specify the index or hash. If neither property is specified, it is assumed that the client is making a request at the current block.
Trait Implementations§
source§impl Clone for PartialBlockIdentifier
impl Clone for PartialBlockIdentifier
source§fn clone(&self) -> PartialBlockIdentifier
fn clone(&self) -> PartialBlockIdentifier
Returns a copy 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 PartialBlockIdentifier
impl Debug for PartialBlockIdentifier
source§impl Default for PartialBlockIdentifier
impl Default for PartialBlockIdentifier
source§fn default() -> PartialBlockIdentifier
fn default() -> PartialBlockIdentifier
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PartialBlockIdentifier
impl<'de> Deserialize<'de> for PartialBlockIdentifier
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
source§impl PartialEq<PartialBlockIdentifier> for PartialBlockIdentifier
impl PartialEq<PartialBlockIdentifier> for PartialBlockIdentifier
source§fn eq(&self, other: &PartialBlockIdentifier) -> bool
fn eq(&self, other: &PartialBlockIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.