Struct cuprate_rpc_types::json::OnGetBlockHashRequest
source · pub struct OnGetBlockHashRequest {
pub base: EmptyRequestBase,
pub block_height: u64,
}Expand description
Fields§
§base: EmptyRequestBase§block_height: u64Trait Implementations§
source§impl Clone for OnGetBlockHashRequest
impl Clone for OnGetBlockHashRequest
source§fn clone(&self) -> OnGetBlockHashRequest
fn clone(&self) -> OnGetBlockHashRequest
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 OnGetBlockHashRequest
impl Debug for OnGetBlockHashRequest
source§impl Default for OnGetBlockHashRequest
impl Default for OnGetBlockHashRequest
source§fn default() -> OnGetBlockHashRequest
fn default() -> OnGetBlockHashRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OnGetBlockHashRequest
impl<'de> Deserialize<'de> for OnGetBlockHashRequest
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 EpeeObject for OnGetBlockHashRequest
impl EpeeObject for OnGetBlockHashRequest
source§impl Hash for OnGetBlockHashRequest
impl Hash for OnGetBlockHashRequest
source§impl Ord for OnGetBlockHashRequest
impl Ord for OnGetBlockHashRequest
source§fn cmp(&self, other: &OnGetBlockHashRequest) -> Ordering
fn cmp(&self, other: &OnGetBlockHashRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OnGetBlockHashRequest
impl PartialEq for OnGetBlockHashRequest
source§fn eq(&self, other: &OnGetBlockHashRequest) -> bool
fn eq(&self, other: &OnGetBlockHashRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for OnGetBlockHashRequest
impl PartialOrd for OnGetBlockHashRequest
source§fn partial_cmp(&self, other: &OnGetBlockHashRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &OnGetBlockHashRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for OnGetBlockHashRequest
impl Serialize for OnGetBlockHashRequest
impl Copy for OnGetBlockHashRequest
impl Eq for OnGetBlockHashRequest
impl StructuralPartialEq for OnGetBlockHashRequest
Auto Trait Implementations§
impl Freeze for OnGetBlockHashRequest
impl RefUnwindSafe for OnGetBlockHashRequest
impl Send for OnGetBlockHashRequest
impl Sync for OnGetBlockHashRequest
impl Unpin for OnGetBlockHashRequest
impl UnwindSafe for OnGetBlockHashRequest
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> EpeeValue for Twhere
T: EpeeObject,
impl<T> EpeeValue for Twhere
T: EpeeObject,
const MARKER: Marker = _
fn read<B>(r: &mut B, marker: &Marker) -> Result<T, Error>where
B: Buf,
fn write<B>(self, w: &mut B) -> Result<(), Error>where
B: BufMut,
fn should_write(&self) -> bool
source§fn epee_default_value() -> Option<Self>
fn epee_default_value() -> Option<Self>
This is different than default field values and instead is the default
value of a whole type. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes