pub struct TransportConfig<A: Address> {
pub pay_to: A,
pub asset: Asset<A>,
pub amount: AmountValue,
pub max_timeout_seconds: u64,
pub resource: Resource,
}Expand description
Per transport configuration options.
Fields§
§pay_to: AThe address to use for payments.
asset: Asset<A>The asset for the payment
amount: AmountValueThe amount of the asset to pay, in smallest units.
max_timeout_seconds: u64Maximum timeout in seconds for the payment to be completed.
resource: ResourceOptional resource configuration.
Implementations§
Source§impl<A: Address> TransportConfig<A>
impl<A: Address> TransportConfig<A>
Sourcepub fn builder() -> TransportConfigBuilder<A>
pub fn builder() -> TransportConfigBuilder<A>
Create an instance of TransportConfig using the builder syntax
Trait Implementations§
Source§impl<A: Clone + Address> Clone for TransportConfig<A>
impl<A: Clone + Address> Clone for TransportConfig<A>
Source§fn clone(&self) -> TransportConfig<A>
fn clone(&self) -> TransportConfig<A>
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 moreAuto Trait Implementations§
impl<A> Freeze for TransportConfig<A>where
A: Freeze,
impl<A> RefUnwindSafe for TransportConfig<A>where
A: RefUnwindSafe,
impl<A> Send for TransportConfig<A>where
A: Send,
impl<A> Sync for TransportConfig<A>where
A: Sync,
impl<A> Unpin for TransportConfig<A>where
A: Unpin,
impl<A> UnwindSafe for TransportConfig<A>where
A: UnwindSafe,
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more