pub struct Inclusion {
pub block: u64,
pub max_block: Option<u64>,
}
Expand description
Data used by block builders to check if the bundle should be considered for inclusion.
Fields§
§block: u64
The first block the bundle is valid for.
max_block: Option<u64>
The last block the bundle is valid for.
Implementations§
source§impl Inclusion
impl Inclusion
sourcepub const fn block_number(&self) -> u64
pub const fn block_number(&self) -> u64
Returns the block number of the first block the bundle is valid for.
sourcepub fn max_block_number(&self) -> Option<u64>
pub fn max_block_number(&self) -> Option<u64>
Returns the block number of the last block the bundle is valid for.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Inclusion
impl<'de> Deserialize<'de> for Inclusion
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
impl Eq for Inclusion
impl StructuralPartialEq for Inclusion
Auto Trait Implementations§
impl Freeze for Inclusion
impl RefUnwindSafe for Inclusion
impl Send for Inclusion
impl Sync for Inclusion
impl Unpin for Inclusion
impl UnwindSafe for Inclusion
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§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
)