pub struct UserDepositSource {
pub l1_block_hash: B256,
pub log_index: u64,
}
Expand description
A deposit transaction source.
Fields§
§l1_block_hash: B256
The L1 block hash.
log_index: u64
The log index.
Implementations§
Source§impl UserDepositSource
impl UserDepositSource
Sourcepub const fn new(l1_block_hash: B256, log_index: u64) -> Self
pub const fn new(l1_block_hash: B256, log_index: u64) -> Self
Creates a new UserDepositSource.
Sourcepub fn source_hash(&self) -> B256
pub fn source_hash(&self) -> B256
Returns the source hash.
Trait Implementations§
Source§impl Clone for UserDepositSource
impl Clone for UserDepositSource
Source§fn clone(&self) -> UserDepositSource
fn clone(&self) -> UserDepositSource
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 UserDepositSource
impl Debug for UserDepositSource
Source§impl Hash for UserDepositSource
impl Hash for UserDepositSource
Source§impl PartialEq for UserDepositSource
impl PartialEq for UserDepositSource
impl Copy for UserDepositSource
impl Eq for UserDepositSource
impl StructuralPartialEq for UserDepositSource
Auto Trait Implementations§
impl Freeze for UserDepositSource
impl RefUnwindSafe for UserDepositSource
impl Send for UserDepositSource
impl Sync for UserDepositSource
impl Unpin for UserDepositSource
impl UnwindSafe for UserDepositSource
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
)