pub struct USDC;Expand description
Ergonomic accessors for USDC token deployments on well-known Stellar chains.
Combine with StellarTokenDeployment::amount for a fluent pricing API:
ⓘ
use r402_stellar::{StellarExact, USDC};
let tag = StellarExact::price_tag(pay_to, USDC::stellar_testnet().amount(10_000_000));Implementations§
Source§impl USDC
impl USDC
Sourcepub fn on(
chain: StellarChainReference,
) -> Option<&'static StellarTokenDeployment>
pub fn on( chain: StellarChainReference, ) -> Option<&'static StellarTokenDeployment>
Looks up a USDC deployment by chain reference.
Sourcepub fn all() -> &'static [StellarTokenDeployment]
pub fn all() -> &'static [StellarTokenDeployment]
Returns all known USDC deployments on Stellar chains.
Sourcepub fn stellar() -> &'static StellarTokenDeployment
pub fn stellar() -> &'static StellarTokenDeployment
USDC on Stellar pubnet (stellar:pubnet).
Sourcepub fn stellar_testnet() -> &'static StellarTokenDeployment
pub fn stellar_testnet() -> &'static StellarTokenDeployment
USDC on Stellar testnet (stellar:testnet).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for USDC
impl RefUnwindSafe for USDC
impl Send for USDC
impl Sync for USDC
impl Unpin for USDC
impl UnsafeUnpin for USDC
impl UnwindSafe for USDC
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