A Rust library to interact with Switchboard V2's hosted data feeds.
This package can be used to manage Switchboard data feed account parsing.
Specifically, this package will return the most recent confirmed round result from a provided data feed AccountInfo.
```rust use switchboardaggregator; use switchboardaggregator::structs::AggregatorRound;
let aggregatorresult: AggregatorRound = switchboardaggregator::getaggregatorresult( switchboardfeedaccount // &AccountInfo )?;
// pub struct AggregatorRound { // pub numsuccess: u32, // pub numerror: u32, // pub isclosed: bool, // pub roundopenslot: u64, // pub roundopentimestamp: i64, // pub result: SwitchboardDecimal, // pub stddeviation: SwitchboardDecimal, // pub minresponse: SwitchboardDecimal, // pub maxresponse: SwitchboardDecimal, // pub oraclepubkeysdata: [Pubkey; 16], // pub mediansdata: [SwitchboardDecimal; 16], // pub currentpayout: [i64; 16], // pub mediansfulfilled: [bool; 16], // pub errorsfulfilled: [bool; 16], // }
```