pub struct CrossChainConfig {
pub default_slippage_bps: Option<u32>,
pub default_target_overpay_bps: Option<u32>,
}Expand description
Configuration for cross-chain sends.
The presence of this struct on Config::cross_chain_config enables
cross-chain providers; None disables them.
Fields§
§default_slippage_bps: Option<u32>Default maximum slippage in basis points used when
PaymentRequest::CrossChain::max_slippage_bps is not set on the
prepare request. Must be in 10..=500. Falls back to 100 bps (1%)
when this field is None.
default_target_overpay_bps: Option<u32>Default target-overpay pad in basis points applied to the user’s
destination amount on FeesExcluded conversion sends. Bumps the
target upward before quoting so the recipient lands at or above the
requested amount despite provider slippage. Must be in 0..=500.
Falls back to 15 bps when None.
Trait Implementations§
Source§impl Clone for CrossChainConfig
impl Clone for CrossChainConfig
Source§fn clone(&self) -> CrossChainConfig
fn clone(&self) -> CrossChainConfig
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 CrossChainConfig
impl Debug for CrossChainConfig
Source§impl Default for CrossChainConfig
impl Default for CrossChainConfig
Source§fn default() -> CrossChainConfig
fn default() -> CrossChainConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrossChainConfig
impl RefUnwindSafe for CrossChainConfig
impl Send for CrossChainConfig
impl Sync for CrossChainConfig
impl Unpin for CrossChainConfig
impl UnsafeUnpin for CrossChainConfig
impl UnwindSafe for CrossChainConfig
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request