pub struct SendBundleRequest {
pub protocol_version: ProtocolVersion,
pub inclusion: Inclusion,
pub bundle_body: Vec<BundleItem>,
pub validity: Option<Validity>,
pub privacy: Option<Privacy>,
}
Expand description
A bundle of transactions to send to the matchmaker.
Note: this is for mev_sendBundle
and not eth_sendBundle
.
Fields§
§protocol_version: ProtocolVersion
The version of the MEV-share API to use.
inclusion: Inclusion
Data used by block builders to check if the bundle should be considered for inclusion.
bundle_body: Vec<BundleItem>
The transactions to include in the bundle.
validity: Option<Validity>
Requirements for the bundle to be included in the block.
privacy: Option<Privacy>
Preferences on what data should be shared about the bundle and its transactions
Implementations§
source§impl SendBundleRequest
impl SendBundleRequest
sourcepub const fn new(
block_num: u64,
max_block: Option<u64>,
protocol_version: ProtocolVersion,
bundle_body: Vec<BundleItem>,
) -> Self
pub const fn new( block_num: u64, max_block: Option<u64>, protocol_version: ProtocolVersion, bundle_body: Vec<BundleItem>, ) -> Self
Create a new bundle request.
Trait Implementations§
source§impl Clone for SendBundleRequest
impl Clone for SendBundleRequest
source§fn clone(&self) -> SendBundleRequest
fn clone(&self) -> SendBundleRequest
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 SendBundleRequest
impl Debug for SendBundleRequest
source§impl Default for SendBundleRequest
impl Default for SendBundleRequest
source§fn default() -> SendBundleRequest
fn default() -> SendBundleRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SendBundleRequest
impl<'de> Deserialize<'de> for SendBundleRequest
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 SendBundleRequest
impl PartialEq for SendBundleRequest
source§impl Serialize for SendBundleRequest
impl Serialize for SendBundleRequest
impl Eq for SendBundleRequest
impl StructuralPartialEq for SendBundleRequest
Auto Trait Implementations§
impl Freeze for SendBundleRequest
impl RefUnwindSafe for SendBundleRequest
impl Send for SendBundleRequest
impl Sync for SendBundleRequest
impl Unpin for SendBundleRequest
impl UnwindSafe for SendBundleRequest
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
)