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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<PartialBlockIdentifier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartialBlockIdentifier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PartialBlockIdentifier
impl PartialEq for PartialBlockIdentifier
Source§fn eq(&self, other: &PartialBlockIdentifier) -> bool
fn eq(&self, other: &PartialBlockIdentifier) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for PartialBlockIdentifier
impl Serialize for PartialBlockIdentifier
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PartialBlockIdentifier
impl StructuralPartialEq for PartialBlockIdentifier
Auto Trait Implementations§
impl Freeze for PartialBlockIdentifier
impl RefUnwindSafe for PartialBlockIdentifier
impl Send for PartialBlockIdentifier
impl Sync for PartialBlockIdentifier
impl Unpin for PartialBlockIdentifier
impl UnwindSafe for PartialBlockIdentifier
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