pub enum ExchangeRateError {
Show 16 variants
AnonymousPrincipalNotAllowed,
CryptoQuoteAssetNotFound,
FailedToAcceptCycles,
ForexBaseAssetNotFound,
CryptoBaseAssetNotFound,
StablecoinRateTooFewRates,
ForexAssetsNotFound,
InconsistentRatesReceived,
RateLimited,
StablecoinRateZeroRate,
Other(String),
NotEnoughCycles,
ForexInvalidTimestamp,
NotEnoughRates,
ForexQuoteAssetNotFound,
StablecoinRateNotFound,
}Expand description
ExchangeRateError Error variants returned by XRC.
Variants§
AnonymousPrincipalNotAllowed
CryptoQuoteAssetNotFound
FailedToAcceptCycles
ForexBaseAssetNotFound
CryptoBaseAssetNotFound
StablecoinRateTooFewRates
ForexAssetsNotFound
InconsistentRatesReceived
RateLimited
StablecoinRateZeroRate
Other(String)
NotEnoughCycles
ForexInvalidTimestamp
NotEnoughRates
ForexQuoteAssetNotFound
StablecoinRateNotFound
Trait Implementations§
Source§impl CandidType for ExchangeRateError
impl CandidType for ExchangeRateError
Source§impl Clone for ExchangeRateError
impl Clone for ExchangeRateError
Source§fn clone(&self) -> ExchangeRateError
fn clone(&self) -> ExchangeRateError
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 ExchangeRateError
impl Debug for ExchangeRateError
Source§impl<'de> Deserialize<'de> for ExchangeRateError
impl<'de> Deserialize<'de> for ExchangeRateError
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
Auto Trait Implementations§
impl Freeze for ExchangeRateError
impl RefUnwindSafe for ExchangeRateError
impl Send for ExchangeRateError
impl Sync for ExchangeRateError
impl Unpin for ExchangeRateError
impl UnwindSafe for ExchangeRateError
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