pub struct ConversionStep {
pub payment_id: String,
pub amount: u128,
pub fee: u128,
pub method: PaymentMethod,
pub token_metadata: Option<TokenMetadata>,
}Expand description
A single step in a conversion
Fields§
§payment_id: StringThe underlying payment id of the conversion step
amount: u128Payment amount in satoshis or token base units
fee: u128Fee paid in satoshis or token base units This represents the payment fee + the conversion fee
method: PaymentMethodMethod of payment
token_metadata: Option<TokenMetadata>Token metadata if a token is used for payment
Trait Implementations§
Source§impl Clone for ConversionStep
impl Clone for ConversionStep
Source§fn clone(&self) -> ConversionStep
fn clone(&self) -> ConversionStep
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 ConversionStep
impl Debug for ConversionStep
Source§impl<'de> Deserialize<'de> for ConversionStep
impl<'de> Deserialize<'de> for ConversionStep
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 Serialize for ConversionStep
impl Serialize for ConversionStep
Source§impl TryFrom<&Payment> for ConversionStep
Converts a Spark or Token payment into a ConversionStep.
Fees are a sum of the payment fee and the conversion fee, if applicable,
from the payment details. Token metadata should only be set for a token payment.
impl TryFrom<&Payment> for ConversionStep
Converts a Spark or Token payment into a ConversionStep.
Fees are a sum of the payment fee and the conversion fee, if applicable,
from the payment details. Token metadata should only be set for a token payment.
Auto Trait Implementations§
impl Freeze for ConversionStep
impl RefUnwindSafe for ConversionStep
impl Send for ConversionStep
impl Sync for ConversionStep
impl Unpin for ConversionStep
impl UnwindSafe for ConversionStep
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
§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> 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