Struct hypersync_net_types::BlockSelection
source · pub struct BlockSelection {
pub hash: Vec<Hash>,
pub miner: Vec<Address>,
}
Fields§
§hash: Vec<Hash>
Hash of a block, any blocks that have one of these hashes will be returned. Empty means match all.
miner: Vec<Address>
Miner address of a block, any blocks that have one of these miners will be returned. Empty means match all.
Trait Implementations§
source§impl Clone for BlockSelection
impl Clone for BlockSelection
source§fn clone(&self) -> BlockSelection
fn clone(&self) -> BlockSelection
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 BlockSelection
impl Debug for BlockSelection
source§impl Default for BlockSelection
impl Default for BlockSelection
source§fn default() -> BlockSelection
fn default() -> BlockSelection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockSelection
impl<'de> Deserialize<'de> for BlockSelection
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 for BlockSelection
impl PartialEq for BlockSelection
source§fn eq(&self, other: &BlockSelection) -> bool
fn eq(&self, other: &BlockSelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockSelection
impl Serialize for BlockSelection
impl StructuralPartialEq for BlockSelection
Auto Trait Implementations§
impl Freeze for BlockSelection
impl RefUnwindSafe for BlockSelection
impl Send for BlockSelection
impl Sync for BlockSelection
impl Unpin for BlockSelection
impl UnwindSafe for BlockSelection
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§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
)