pub struct CrossChainRouteLimits {
pub min_amount: Option<u128>,
pub max_amount: Option<u128>,
pub min_usd_cents: Option<u64>,
pub max_usd_cents: Option<u64>,
}Expand description
Amount bounds a provider publishes for moving a route with one Spark-side asset.
A route can enforce a tighter bound than it publishes, so an amount inside these can still be rejected when the payment is prepared.
The two groups are independent, and either can be absent: a route may publish a base-unit floor (a dust minimum on a sats-funded route), a USD notional band, both, or neither.
min_amount / max_amount bound the asset that is paid in, so which asset
they are denominated in follows the direction: the Spark-side asset on a
send, the external asset on a receive. The USD band bounds the order’s
value and reads the same in both directions.
Fields§
§min_amount: Option<u128>Smallest amount accepted, in the base units of the asset paid in.
max_amount: Option<u128>Largest amount accepted, in the base units of the asset paid in.
min_usd_cents: Option<u64>Smallest order value accepted, in USD cents.
max_usd_cents: Option<u64>Largest order value accepted, in USD cents.
Trait Implementations§
Source§impl Clone for CrossChainRouteLimits
impl Clone for CrossChainRouteLimits
Source§fn clone(&self) -> CrossChainRouteLimits
fn clone(&self) -> CrossChainRouteLimits
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CrossChainRouteLimits
impl Debug for CrossChainRouteLimits
Source§impl<'de> Deserialize<'de> for CrossChainRouteLimits
impl<'de> Deserialize<'de> for CrossChainRouteLimits
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>,
Source§impl Hash for CrossChainRouteLimits
impl Hash for CrossChainRouteLimits
Source§impl PartialEq for CrossChainRouteLimits
impl PartialEq for CrossChainRouteLimits
Source§impl Serialize for CrossChainRouteLimits
impl Serialize for CrossChainRouteLimits
impl Eq for CrossChainRouteLimits
impl StructuralPartialEq for CrossChainRouteLimits
Auto Trait Implementations§
impl Freeze for CrossChainRouteLimits
impl RefUnwindSafe for CrossChainRouteLimits
impl Send for CrossChainRouteLimits
impl Sync for CrossChainRouteLimits
impl Unpin for CrossChainRouteLimits
impl UnsafeUnpin for CrossChainRouteLimits
impl UnwindSafe for CrossChainRouteLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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>
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>
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>
T in a tonic::Request