pub struct BlockParam {
pub hash: Option<Bytes>,
pub chain: Option<Chain>,
pub number: Option<i64>,
}Fields§
§hash: Option<Bytes>§chain: Option<Chain>👎Deprecated: The
§chain field is deprecated and will be removed in a future version.number: Option<i64>Trait Implementations§
Source§impl Clone for BlockParam
impl Clone for BlockParam
Source§fn clone(&self) -> BlockParam
fn clone(&self) -> BlockParam
Returns a duplicate 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 BlockParam
impl Debug for BlockParam
Source§impl DeepSizeOf for BlockParam
impl DeepSizeOf for BlockParam
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl<'de> Deserialize<'de> for BlockParam
impl<'de> Deserialize<'de> for BlockParam
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 From<&Block> for BlockParam
impl From<&Block> for BlockParam
Source§impl Hash for BlockParam
impl Hash for BlockParam
Source§impl PartialEq for BlockParam
impl PartialEq for BlockParam
Source§impl Serialize for BlockParam
impl Serialize for BlockParam
Source§impl<'__s> ToSchema<'__s> for BlockParam
impl<'__s> ToSchema<'__s> for BlockParam
impl Eq for BlockParam
impl StructuralPartialEq for BlockParam
Auto Trait Implementations§
impl !Freeze for BlockParam
impl RefUnwindSafe for BlockParam
impl Send for BlockParam
impl Sync for BlockParam
impl Unpin for BlockParam
impl UnwindSafe for BlockParam
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<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.