#[non_exhaustive]pub enum FastTransferFee {
Known(u32),
Unknown,
}Expand description
Static Fast Transfer fee metadata for a CCTP v2 chain, in basis points.
This enum is retained for chain-level/static metadata. Current CCTP v2
fees are route-aware and should be fetched with
CctpV2Bridge::get_transfer_fees
or
CctpV2Bridge::calculate_fast_transfer_max_fee
before quoting or sending a Fast Transfer. Until a chain’s static fee has
been confirmed against an authoritative source, this SDK represents it as
FastTransferFee::Unknown rather than asserting a numeric value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Known(u32)
Fee is confirmed at this value in basis points (0-14).
A Known(0) is a sourced zero fee, semantically distinct from
FastTransferFee::Unknown.
Unknown
Fee data has not yet been confirmed for this chain.
Callers must not assume zero. Coercing Unknown to zero would
reintroduce the placeholder behavior this enum exists to
prevent — Circle’s published range is 0-14 bps, so a default
of zero is plausible enough to mask a real fee from downstream
consumers.
Trait Implementations§
Source§impl Clone for FastTransferFee
impl Clone for FastTransferFee
Source§fn clone(&self) -> FastTransferFee
fn clone(&self) -> FastTransferFee
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FastTransferFee
Source§impl Debug for FastTransferFee
impl Debug for FastTransferFee
impl Eq for FastTransferFee
Source§impl PartialEq for FastTransferFee
impl PartialEq for FastTransferFee
Source§fn eq(&self, other: &FastTransferFee) -> bool
fn eq(&self, other: &FastTransferFee) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FastTransferFee
Auto Trait Implementations§
impl Freeze for FastTransferFee
impl RefUnwindSafe for FastTransferFee
impl Send for FastTransferFee
impl Sync for FastTransferFee
impl Unpin for FastTransferFee
impl UnsafeUnpin for FastTransferFee
impl UnwindSafe for FastTransferFee
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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 more