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
)