pub struct BundleRequest {
pub chain_id: u64,
pub from_address: String,
pub actions: Vec<BundleAction>,
pub routing_strategy: Option<RoutingStrategy>,
}Expand description
Bundle request for multi-action transactions
Fields§
§chain_id: u64Chain ID
from_address: StringSender address
actions: Vec<BundleAction>Actions to bundle
routing_strategy: Option<RoutingStrategy>Routing strategy
Implementations§
Source§impl BundleRequest
impl BundleRequest
Sourcepub fn new(
chain_id: u64,
from_address: impl Into<String>,
actions: Vec<BundleAction>,
) -> Self
pub fn new( chain_id: u64, from_address: impl Into<String>, actions: Vec<BundleAction>, ) -> Self
Create a new bundle request
Sourcepub fn with_routing_strategy(self, strategy: RoutingStrategy) -> Self
pub fn with_routing_strategy(self, strategy: RoutingStrategy) -> Self
Set the routing strategy
Trait Implementations§
Source§impl Clone for BundleRequest
impl Clone for BundleRequest
Source§fn clone(&self) -> BundleRequest
fn clone(&self) -> BundleRequest
Returns a duplicate 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 BundleRequest
impl Debug for BundleRequest
Auto Trait Implementations§
impl Freeze for BundleRequest
impl RefUnwindSafe for BundleRequest
impl Send for BundleRequest
impl Sync for BundleRequest
impl Unpin for BundleRequest
impl UnwindSafe for BundleRequest
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