Enum mirror_protocol::collateral_oracle::SourceType [−][src]
pub enum SourceType {
MirrorOracle {},
AnchorOracle {},
BandOracle {},
FixedPrice {
price: Decimal,
},
Terraswap {
terraswap_pair_addr: String,
intermediate_denom: Option<String>,
},
AnchorMarket {
anchor_market_addr: String,
},
Native {
native_denom: String,
},
}
Variants
Fields of MirrorOracle
Fields of AnchorOracle
Fields of BandOracle
Fields of FixedPrice
price: Decimal
Fields of AnchorMarket
anchor_market_addr: String
Fields of Native
native_denom: String
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SourceType
impl Send for SourceType
impl Sync for SourceType
impl Unpin for SourceType
impl UnwindSafe for SourceType
Blanket Implementations
Mutably borrows from an owned value. Read more