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
)