pub enum AggregatorAddress {
SwitchboardAddress(String),
PythAddress(String),
ChainlinkAddress(String),
}
Variants§
SwitchboardAddress(String)
/ Mainnet address of a Switchboard V2 feed. Switchboard is decentralized and allows anyone to build their own feed. A small subset of feeds is available here: https://switchboard.xyz/explorer
PythAddress(String)
/ Mainnet address for a Pyth feed. A full list can be found here: https://pyth.network/price-feeds/
ChainlinkAddress(String)
/ Mainnet address for a Chainlink feed. A full list can be found here: https://docs.chain.link/docs/solana/data-feeds-solana
Implementations§
Source§impl AggregatorAddress
impl AggregatorAddress
Sourcepub fn merge<B>(
field: &mut Option<AggregatorAddress>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<AggregatorAddress>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for AggregatorAddress
impl Clone for AggregatorAddress
Source§fn clone(&self) -> AggregatorAddress
fn clone(&self) -> AggregatorAddress
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 AggregatorAddress
impl Debug for AggregatorAddress
Source§impl PartialEq for AggregatorAddress
impl PartialEq for AggregatorAddress
impl StructuralPartialEq for AggregatorAddress
Auto Trait Implementations§
impl Freeze for AggregatorAddress
impl RefUnwindSafe for AggregatorAddress
impl Send for AggregatorAddress
impl Sync for AggregatorAddress
impl Unpin for AggregatorAddress
impl UnwindSafe for AggregatorAddress
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